1

I have both VS2017 Pro and VS2019 Pro installed. I use the older one for desktop apps, because the editor is so much faster and more stable, and the newer one for web development only.

After installing the .NET 5 SDK I lost .NET standard 2.0 in VS2017:

enter image description here

dotnet --info shows

enter image description here

How do I get .NET Standard 2.0 back?

hk1980
  • 95
  • 1
  • 7
  • I'm not sure how to get it back as I never use that dropdown (too inconsistent for me), but targeting .NET Standard 2.0 is as simple as: `netstandard2.0` – Camilo Terevinto Jan 06 '22 at 11:00
  • https://stackoverflow.com/questions/53709476/missing-net-standard-2-0-framework-with-latest-net-core-sdk-2-2-1-net-framew – Hans Passant Jan 06 '22 at 11:21

1 Answers1

1

What worked for me was add a new system environmental variable MSBuildSdksPath and set it point to an older SDK folder, like C:\Program Files\dotnet\sdk\2.2.110\Sdks. After that netstandard2.0 reappeared in the list.

Answering to myself because this solution was not mentioned in the existing similar thread.

hk1980
  • 95
  • 1
  • 7