How do you set up Windows Ads in Windows 8.1 MonoGame Store apps? - windows-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.

Related

How to port Windows Store 8.1 apps to Windows 10?

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

Windows Phone Emulator 8 can't install Xamarin application

I have created a Xamarin application and compiled to Release. It was succesfully tested on an Android emulator so I decided to deploy it to a Windows Phone 8.0 Emulator.
I tried to use the Application Deployment but it cannot install because it starts the emulator that never boots, it shows OS starting (starting the emulator on its own is working).
So I downloaded it to the phone and when I try to open it, it says:
Can't install company app. There is a problem with this company app.
Contact your company's support person for help.
Why is the app considered company app? How can I install it to the emulator? What should I set?
The solution consists of two steps.
The company app issue is present because I've downloaded the application from a website, so it is unsafe (the source is the Internet). I have to install it through application deployment (via Visual Studio 2013 or the Windows Phone Application Deployment application).
The second step is to discard (and uninstall) Windows Phone 8.0 and change to Windows Phone 8.1. That helps a lot.

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

Need to convert my Windows Phone 8.1 app code to Windows phone 8

I have developed an app for Windows Phone 8.1 but now I want the same app to developed in Windows phone 8.0. It is possible to do that? Is there any migration tool available or I need to develop from scratch.
No you can't downgrade any app after you've started developing. IF you wanted to develop a WP8 as you said have to start it from the scratch. But still you can upgrade a WP8 app to WP 8.1 (For Silverlight Apps). If it's normal WinRT app you can only develop targeting 8.1 only.
For more have a look here
Hope it helps!
You just compile the 8.0 release and upload the *:xap to the store without deleting your 8.1 *.appxupload.
Uppdate App >> Upload and describe your package(s) >> Add new
You might wanna consider making a phone 7 app for best coverage (7 will work for 8.0 users).

Which Windows edition to use as a build server for Windows Phone 8 projects?

We plan to create virtual machine to serve as a build server for our Windows Phone 8 projects. According to the official requirements the WP8 SDK runs only on Windows 8. The question is is it possible to install the VS2012 and WP8 SDK also on Windows Server 2012, or should we just use the supported Windows 8?
Note we use Hyper-V for hosting virtual machines and also we don't need the WP8 emulator on that build server.
As a possible alternative (as I haven't tested your issue of building on WS 2012), why don't you use TFS online? It allows for 5 free projects (privately hosted in the cloud). See more here: http://tfs.visualstudio.com/
More on your issue:
I have tried running the WP8 SDK on Windows 7 without any luck (but it's not supported so I understand). Also, I have tried running the WP8 SDK from a Windows 8 Virtual Machine, but the emulator did not run as Hyper-V can't run on Hyper-V without pursuing this option: http://www.developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator
Hope this helps in some way, shape, or form.
On my workstation are installed VS2012, WP8 SDK. All works fine.