Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Building Win10 App on VS 2015 after updating

After updating to Windows 10 and to Visual Studio 2015 from its RC, I can't build my windows 10 app in development. The error says "error : "10.0.10069.0" is not a supported value for TargetPlatformVersion. Please change it on the Project Property page.

I clicked onto it, I see this:

<CheckUAPVersions TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformMinVersion="$(TargetPlatformMinVersion)" SDKIdentifier="$(SDKIdentifier)" SDKVersion="$(SDKVersion)" />

But don't know what to change.

On my package.appxmanifest, I have

 <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10069.0" MaxVersionTested="10.0.10069.0" />

Can anyone help? Thanks!

like image 969
user2335065 Avatar asked Jul 30 '15 04:07

user2335065


2 Answers

In your appxmanifest, set them both to 10.0.0.0. The RTM toolset injects the correct version when building.

Then in your project properties, make sure to set the target toolset version property to 10.0.10240.0 for All Configurations and All Platforms.

like image 132
Chuck Walbourn Avatar answered Sep 20 '22 07:09

Chuck Walbourn


In your solution explorer, right click the UWP project directory and choose "Properties". Then, on the "Target Version" and "Min Version" field, click the drop down button and choose the target platform version based on your sdk, not "inherit from parent or project defaults".

like image 33
Leo Tiofan Justicia Avatar answered Sep 20 '22 07:09

Leo Tiofan Justicia