Error building Windows Phone 8.1 unit test in VS Online - windows-phone-8

I just set up a Windows Phone 8.1 project using VS 2013 update 2 and added it to a git repo in VS Online.
After configuring a build definition, I tried to run the build but it is erroring out on:
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1864): Could not find SDK "MSTestFramework, Version=12.0".
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1864): Could not find SDK "TestPlatform, Version=12.0
The documentation for VS Online states that the WP8 SDK is installed, but there is no mention of WP8.1. http://www.visualstudio.com/en-us/get-started/hosted-build-controller-vs.aspx#software
Has anybody managed to get a WP 8.1 unit test project to build, and run the tests using VS Online?

Related

APPX321 SDK folder containing 'UAP.props' for 'UAP 10.0.17763.0' cannot be located

I want to create an upload package for the Windows Store.
The app is essentially "Hello world" for a dev express XAF Win application. I am using the Desktop Bridge.
I am following the docs to create the upload package
This created a file
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage
And an error
APPX3217 SDK folder containing 'UAP.props' for 'UAP 10.0.17763.0'
cannot be located. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information
When I double click the error it goes to the following code in the Targets file
<GetSdkPropertyValue Condition="'$(AppxPackagePipelineVersion)' == '$(UapBuildPipeline)'"
TargetPlatformSdkRootOverride="$(TargetPlatformSdkRootOverride)"
SDKIdentifier="$(SDKIdentifier)"
SDKVersion="$(SDKVersion)"
TargetPlatformIdentifier="$(TargetPlatformIdentifier)"
TargetPlatformMinVersion="$(TargetPlatformMinVersion)"
TargetPlatformVersion="$(TargetPlatformVersion)"
PropertyName="WindowsSdkDir"
VsTelemetrySession="$(VsTelemetrySession)">
I am targeting WIndows 10, version 1809(10.0; Build 17763) and also have this as the min version.
The application is using .Net Framework 4.7.2
As per the Microsoft link I had to install the update for Windows 10 SDK, version 1809.
My Logs :
Error APPX3217: SDK folder containing 'UAP.props' for 'UAP
10.0.18362.0' cannot be located.
This works for me.
Go to https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
Install SDK: Windows 10 SDK, version 1903 (10.0.18362.1)
Then, rebuild it succeeded.
I had the same issue with a CI/CD project that relied on the 1703 release. I used choco to fix it as a build-step.
choco install windows-sdk-10.1 --version=10.1.15063.468

Can't use XLabs prerelease packages in appstore builds

I am building an app with Xamarin Forms and XLabs plugins.
To be able to run everything smoothly on Android and Windows Phone, i've had to use a prerelease version of xlabs (2.2.0-pre05).
When I tried to create a Windows Phone appstore package the certification failed because the packages for 2.2.0-pre05 have been built in debug mode.
To overcome this, I cloned the git hub project for XLabs and built everything in release mode.
The problem is, when I try to build the project with the packages i've built, I get this error:
Payload file '..\packages\Mike Xlabs\XLabs.Platform.WinRT.Phone\FodyWeavers.xml' does not exist.
Also, the windows store certification checks fail because of libraries used by the prerelease package.I'm getting the following error:
Error Found: The supported APIs test detected the following errors:
This API is not supported for this application type - Api=D2D1GetGradientMeshInteriorPointsFromCoonsPatch. Module=d2d1.dll. File=SharpDX.Direct2D1.dll.
Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Phone Store apps violates the Windows Phone Store certification requirements.

Windows Store Certification Metadata test failes

When I run my program in debug mode, it runs nicely. Now that I want to upload it to the Windows Phone Store, it creates the App Package, but when running the Windows App Certification Kit, it returns the following error:
General metadata correctness test - failed
with the reason:
In the Winmd-File "myBackgroundPart.winmd" (that's my RunTime Component) there is missing "WindowsRuntime 1.3" or "WindowsRuntime 1.2" in the versionstring. The versionstring of the file is "WindowsRuntime 1.4;CLR v4.0.30319".
My environment is Visual Studio 2015 CTP5. The error message suggests, that my WinRT is too new for Store!? How do I downgrade it then?
Edit
This was an issue with VS2015 CTP5, with the new released CTP6 yesterday it was solved.
You need to build your app using Visual Studio 2013 (Update 4 is the latest). Note that Visual Studio 2015 does not have a "go live" license, meaning you can't use it for production purposes anyway. You need to wait until it is released.
Also, when you built the component, what Project Type did you choose? If you built a project for Windows 8.x then I don't think it should have used version 1.4 metadata. Did you build / test on Windows 10 Preview by any chance?

Cocos2d-x won't build to windows phone 8

So with the newest release of cocos2d-x, I noticed the new project command generates a windows phone 8 folder to go along with the other auto generated projects. However, upon opening the generated solution and trying to build I get this error:
C:\Projects\MyGame\cocos2d\cocos\cocos2d.h(226): fatal error C1083:
Cannot open include file: 'platform/winrt/CCGLViewImpl.h': No such
file or directory
The project builds for all the other platforms. Is windows phone 8 officially supported yet? Is there a quick work-around to get up and running?
(Also I have a windows phone developer account and can build other windows phone solutions, I am using visual studio pro 2012)
It seems the latest version on github it now all works, so maybe it was still a work in progress.
(Note that it doesn't work in 3.2, the latest version posted on the website, but it does work in the latest github code as of now).

Windows phone 8 image uploading to windows azure

I want to upload Image from my windows phone 8 application to azure , I have searched a
lot and found various solutions in windows phone 7 all are using
"Phone.Storage"
, but when I try to install it for my windows phone 8 app , it throw error.
I have also tried vaious packages using nuget package manager but every one installation faild at
'Microsoft.WindowsAzure.ConfigurationManager 1.7.0.3'. Install
failed. Rolling back...
Please help me resolve this issue, and if there exist a good tutorial , please share .
Zauk
I had similar problem, the reason was that the NuGet version that ships with VS2012 RTM doesn't support WP8. Can you try to update your NuGet package manager to the latest version.
Go to
Menu Tools -> Extensions and Updates -> Updates -> Visual Studio Gallery -> NuGet
update restart.
If you are getting this error when trying to install the Azure Storage library from Nuget. "Could not install package 'Microsoft.WindowsAzure.ConfigurationManager'" . That is because the package you are trying to install does not include the Windows Phone 8 library.
As a fix: Use this command from the package manager console:
Install-Package WindowsAzure.Storage-Preview -Pre
Here is some documentation on how to implement it, after you are done installing the Azure Storage SDK
http://www.windowsazure.com/en-us/documentation/articles/mobile-services-windows-phone-upload-data-blob-storage/