3

I was forced into upgrading to Visual Studio 16.3.0 today because some Nuget packages were released that wouldn't work with .NET Core 2.2. To my horror, my client UWP application which makes extensive use of shared .NET Standard libraries was gushing errors. So then I took a virgin UWP application and tried to link it to a virgin .NET Standard library. Same failure.

NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586). Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm64-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x64. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x64-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
NuGet package restore failed. Please see Error List window for detailed warnings and errors.

Is anyone else seeing this? Any ideas how to fix it?

Quark Soup
  • 4,272
  • 3
  • 42
  • 74
  • So... what do you want? – S.S. Anne Sep 23 '19 at 22:29
  • What framework version are you specifying? – STLDev Sep 23 '19 at 22:39
  • Like I said, virgin. Out of the box you get .NET Standard 2.0 if you don't change anything. I didn't change any settings when I created the UWP application and linked it to a .NET Standard library. – Quark Soup Sep 23 '19 at 22:41
  • UWP does not move that fast. Next major Win10 update, perhaps, you'd still want to wait until you're sure that most users have in fact updated. That takes a while, version 1709 (Fall Creators) is a safe bet right now. If the Dependencies info is accurate then just use an older release of the package. – Hans Passant Sep 24 '19 at 08:00
  • Possible duplicate of [using .NET Standard 2.1 with UWP](https://stackoverflow.com/questions/58070082/using-net-standard-2-1-with-uwp) – Hans Passant Sep 24 '19 at 11:12

1 Answers1

3

According to the error message you got:

Your uwp project targets 10.0.10586, but it's not compatible with .net standard 2.0.

Please see .NET implementation support. To reference .net standard 2.0 library, your uwp project should target at least 10.0.16299. See:

enter image description here

Also, you may get help from this similar issue.

So you can change your minimum version to at least 16299 to resolve this issue. Or you can choose to reference .net standard 1.4 project instead of 2.0 version.

And to your title, see the pic above and you can find UWP does not support .net standard right now.

LoLance
  • 25,666
  • 1
  • 39
  • 73