Reputation: 18789
I upgraded my Nuget
version on my UWP automated build from V3.5.0
to V4.0.0
After doing so my UWP
build I got the following error:
error : Your project is not referencing the "UAP,Version=v10.0.10240" framework. Add a reference to "UAP,Version=v10.0.10240" in the "frameworks" section of your project.json, and then re-run NuGet restore.
I'm not sure how to add a reference to that UAP,Version=v10.0.10240
in my project.json
My project.json
file looks like so:
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.3.3",
"Xamarin.Forms": "2.3.4.247"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
I would have presumed that the uap.10.0
was sufficient.
Is there another framework I need to add?
Upvotes: 1
Views: 937
Reputation: 1702
In my case I've solved running restore from Visual Studio Command Prompt:
msbuild /t:restore path-to-solution-file.sln
Upvotes: 2