Casey Crookston
Casey Crookston

Reputation: 13955

.NET Core 2.0 Is Not An Option in Visual Studio Target Framework

I am running VS 15.6.1.

enter image description here

I have downloaded and ran the following two files:

Here's the contents of my C:\Program Files\dotnet\sdk

enter image description here

I created a new project as a .NET Core Class Library. But when I try to target it to Core 2.1,1, I can't:

enter image description here

This thread didn't help: .NET Core 2.0 missing from my Visual Studio

What am I doing wrong?

Upvotes: 2

Views: 1881

Answers (2)

RickAndMSFT
RickAndMSFT

Reputation: 22800

The preceding answer works but it's not the right way to fix the problem. See The latest installed .NET SDK not found which is the MS supported answer and explains why this failed.

Upvotes: 1

Casey Crookston
Casey Crookston

Reputation: 13955

Ok, I found the answer here: Configure .NET Core to use x86 SDK

But what is not listed in that answer is the location from which you can download the x86 version of the SDK. It's here:

https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.4

So here's that I did:

  1. Close Visual Studio
  2. Un-install the x64 SDK (all versions of it)
  3. Manually remove all folders and files inside of C:\Program Files\dotnet\sdk
  4. Download and run the x86 version of the SDK
  5. Re-open Visual Studio. And bam....

enter image description here

Upvotes: 2

Related Questions