Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get .NET Standard 2.0 installed

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

like image 618
Justin Avatar asked Jan 25 '18 18:01

Justin


People also ask

How do I know if NET Standard 2.0 is installed?

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.

Which .NET Framework supports .NET Standard 2?

NET Standard 2.0 specification is now complete. It is supported in . NET Core 2.0, in the . NET Framework 4.6.

What is the difference between .NET Core and .NET Framework and .NET standard?

. 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.

What is the difference between .NET Standard and .NET Framework?

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.


1 Answers

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!

like image 175
Justin Avatar answered Sep 27 '22 19:09

Justin