I'm trying to create a .NET Standard 2.0 project, however on the project properties page it only has options up to .NET Standard 1.6. I went to Visual Studio > Tools > Extensions and Updates > Updates > Product Updates and upgraded Visual Studio 2017 to the latest version (15.5.4.)
I also downloaded / installed the .Net Core 2.0 SDKs from both of these urls:
https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md
https://www.microsoft.com/net/learn/get-started/windows?utm_expid=.-Fmi9Q05Ry2oXQgdtPElHw.0&utm_referrer=http%3A%2F%2Fwww.talkingdotnet.com%2Fwhats-new-in-net-standard-2%2F#windowscmd
For good measure I even rebooted, yet still no .NET Standard 2.0 option. What gives?
C:\WINDOWS\system32>dotnet --info .NET Command Line Tools (2.1.4)
Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190
Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.4\
Microsoft .NET Core Shared Framework Host
Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
Navigate to “C:\Program Files\dotnet\sdk” in your machine to see list of all SDK version installed on your machine. Once the installation is complete, open command prompt and type following command. You should see 2.0.
NET Standard 2.0 specification is now complete. It is supported in . NET Core 2.0, in the . NET Framework 4.6.
. Net Core does not support desktop application development and it rather focuses on the web, windows mobile, and windows store. . Net Framework is used for the development of both desktop and web applications as well as it supports windows forms and WPF applications.
Net Standard is not a framework or platform of its own. It does not have implementations or a runtime, it just defines a specification what different . Net platforms has to implement to remain . Net Standard compliant.
It turns out that someone had put a global.json file at the root of our repo that was hard-coding the SDK to a 1.x preview version. Once I updated that to 2.1.4, I started getting the .NET Standard 2.0 project option!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With