How to actually USE .Net Standard 2.0?

Yes, the blog states: "Just add a .Net Standard project to the solution". I did that. And it works, as long as I stick to .Net Standard 1.4.

As soon as I try to switch to .Net Standard 2.0 (which most of the Nuget packages I reference kind of demand), then I get the following exception upon trying to run an UWP app (and, yes, I did set both minimum and maximum version of the UWP package to the Fall Creators Update):

"Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the reference file."

So, what else do I have to do to make this work? .Net Core SDK is installed (otherwise I would not even be able to set the target) and so on.

And also: Great job on the forum. "You have to be around longer to post links" - even when the link is to your own CDN with a picture you just let me upload...

Answers

  • kentuckerkentucker USMember ✭✭✭✭

    update the nuget packages for the uwp project and it should allow you to use .net standard 2.0

Sign In or Register to comment.