Universal Windows Platform (UWP) and Netstandard 2.0

Since UWP Fall Creators Update (10.0.16299), it is possible to reference netstandard 2.0 libaries. When they annonced that, I just had to try it out, but for some reasons I could not get that to work. As fast as I added a reference to a netstandard 2.0 package all sorts of reference errors happend. The console output also said that the UWP project not compatible with netstandard2.0.

A lot of google searches later, I found an issue on Github UWP can't reference .Net Standard 2.0 projects??. In short the steps to make UWP work with netstandard 2.0:

  • Make sure you have at least Visual Studio 15.4.
  • If you installed .Net Core SDK 2.0 manually from dot.net, you need to uninstall that.
  • Open Visual Studio Installer and install the Cross Platform development workflow from there. When that workflow is selected, it tells you at the right side that it will install .Net Core SDK 2.0.

After that uninstall and install procedure, I was finally ready to compile the UWP project using netstandard2.0 references.

Teis Lindemark

Passionate software developer and beer brewer

Bergen, Norway https://teilin.net