How to port Windows Store 8.1 apps to Windows 10? - windows-store-apps

I have developed few apps in windows store 8.1 and i want to port them to windows 10.
Previously when windows 8.1 has released, In Visual Studio when you open the windows store 8 app code, in the solution we had an option called target to windows store 8.1, then it takes care of everything.
Now how to Port Windows store 8.1 apps to Windows 10 using C# and xaml
Any help or any article on this please?
Thanks in advance

The best way to do this is to create a new Windows 10 project based on the universal template and then copy all the source files and assets to it. There's a detailed description on MSDN here:
https://msdn.microsoft.com/en-us/library/windows/apps/dn705768.aspx
and here:
https://msdn.microsoft.com/en-us/library/windows/apps/dn751495.aspx

0) Install Win10 RTM
OK? =)
(But, If you just want to bulid the UWP project, Win8.1 is also ok. But you can't use the xaml designer, inspector, etc.... I can't recomend this way)
1) Install VS2015 RTM and Win10SDK RTM.
By default, Win10SDK is NOT installed. You should select the Win10 SDK from installation option dialog.
1.5) Update NuGET 3.1.
You can see the Flag Icon on the top-right corner of VS2015 Window. Click it to install Nuget Update.
2) Migrate your solution and project.
You should modify your .csproj manually with this guide.
Migrate apps to the Universal Windows Platform (UWP)
After that, you can build your app with VS2015.
Note - if you got the thousands of compile error, try Installing following nuget package from nuget console.
Microsoft.NETCore.UniversalWindowsPlatform
3) Modifying your app to suit for UWP manner
Following pages helps you.
Move from Windows Runtime 8 to UWP
Porting Windows Runtime 8 XAML and UI to UWP

Related

How to test update of Windows 8.1 appx app?

My use case, I have Windows 8.1 XAML app v1.0 in appx package. I'd like to deploy this version on my tablet, use it for a while and then test update of this app to version 1.1 which I have in another appx package.
Is this easily possible for tablet apps? I know that for Windows Phone there is Application Deployment Tool, but for Windows 8.1 there is nothing I know about.
Thanks
As long as your tablet is running Windows 8.1 you can side-load the app onto it.
Create the app package using Visual Studio. Then run the Powershell script on your tablet to install the package. (You will be required to have a developer license on the tablet). When you are ready to test the next version just follow the same steps.
https://msdn.microsoft.com/en-us/library/hh975356.aspx?f=255&MSPPError=-2147217396#Create

How to package and upload my Cordova App to Windows Store from Visual Studio 2013

We paid a developer account in Windows Store (enterprise).
We created a Cordova 3.7 app for Windows Phone 8.1 and even we could test directly on a phone with Windows 8.1 from Visual Studio 2013 and everything worked in the hardware.
therefore, We begin to fill in the details for the App We need to publish in the store.
There is a section in which we are asked to upload a packaged App so here We have the chance of selecting it on the disk.
Our problem is We don't know how to create the pack and where in the disk Visual Studio left it.
We started to search in msdn.microsoft.com and these are the ideas we could get (but still couldn't make a pack):
1) Every where in MSDN they talk about a STORE option on Visual Studio. We can see this option in the ppal menu but all its options are disabled.
But in a forum, after searching a lot, We could figure out that this is normal for Cordova Apps on Visual Studio 2013 because they are considered as Silverlight Apps.
Then We find out again a doc in MSDN about uploading Silverlight Apps to Win Store. They say this kind of Apps must be packed and uploaded by hand.
2) So We focused in find out how to prepare a Windows Phone Silverlight 8.1 app for publishing.
This is a link in MSDN :http://msdn.microsoft.com/en-us/library/windows/apps/dn655122(v=vs.105).aspx
But a new problem comes out, We don’t have any Package.appxmanifest.xml file in our project but only have aWMAppManifest.xml file.
We finally find out only Windows Phone 8.1 projects on Visual Studio have the Package.appxmanifest.xml file and it seems that my Cordova Project was generated like a kind of a Win Phone 8.0, what is not that bad because we want our App to be supported by Windows P. 8.0 and 8.1 devices.
But at the end of all this journey, we are stuck at the first step again. So we realized we don't know how pack a Windows Phone 8 (Cordova) App in order to be uploaded to Windows Store.
How and where Visual Studio 2013 make the pack and what is the extension name of this file.
The App, as I said, is ok and can be deployed and executed OK in a real phone from Visual Studio (run button)
Sorry, We know the question is large but We wanted to clear what We had reached so you know What We are asking and What We could have done bad just in case.
Thanks in advance, We think a lot of people could profit of the answer of experts in this matter because a summary is needed, the info in MSDN seem disperse.
You cannot upload a Windows Phone Silverlight xap to the Windows Store, only to the Windows Phone store. To upload to the Windows Phone store you won't need the Package.appxmanifest for a Windows Phone 8 app (only for a Windows Phone 8.1 app).
You'll upload the xap file created when you build for release with the normal build process. You don't need to do any further modifications for a Silverlight app.
You can create either Windows Phone or Windows Store apps with Visual Studio Tools for Apache Cordova
Use Project->Store->Create App Packages.. from visual studio menu.
http://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#package-the-windows-version-of-your-app

Why do I not see "Store" in the project menu for my Windows Phone 8.0 app?

According to official guide - i have to build a .appxupload file via special Wizard. Unfortunately, i simply don't have the option "Store" in Project menu. I only have "test Store" with opportunities to test my app's icons, XAP-file, etc.. Can anyone help with this stupid situation? Thanks in advance.
Windows Phone 8.0 apps are packaged in .xap files.
Windows Phone 8.1 apps are packaged in .appx/.appxupload files.
Your app is an 8.0 app so your app will be packaged in a .xap file which is generated when you build the app using the mode Release.
If you want to output a .appx file you'll need to do the following:
Get Visual Studio 2013 Update 2 RTM
Convert your 8.0 app to an 8.1 app
Right-click the project and go to Store -> Create App Packages...

Windows Phone 8.1 app won't run in Emulator

I am getting this error
Package could not be registered.
When I try to run my 8.1 Silverlight app in the emulator.
I have no errors in any of the event logs for AppxDeploy either.
This was a 7.1 app I upgraded to 8.0. Then upgraded to 8.1.
I am using Visual Studio 2013 (V12) Update 2 RC.
I will be active on this post and will return if more information is needed.
Wrong Product ID and Publisher ID in the WMAppManifest.xml file for the project.
Use the ones found in your App and Account summary pages in Dev Center, and it should work fine.
Have you updated the capabilities in the WMAppManifest.xml? You need to make sure that you update the namespaces in the existing manifest with the update namespace from Windows Phone 8.1 SDK.

How do you set up Windows Ads in Windows 8.1 MonoGame Store apps?

I'm using MonoGame to create a Windows Store game based on sprites but when I right-click my project and try to add pubCenter integration in as a connected service it doesn't have the option to add any connected services.
That being said, how would you add pubCenter Windows Ads in to MonoGame applications?
I am using Windows 8.1 and Visual Studio 2013, with the latest Advertising SDK extension installed correctly on my machine.
Whoops, looks like I forgot to set my project's Target Platform Version to Windows 8.1! Hope this helps other people out; the latest build (as of right now) enables your platform to only Windows 8 by default.