Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp Net Core 2.1 not listed in Visual Studio 2017 target framework

I've installed the new AspNet Core 2.1 SDK - which is now official - but it's still not listed in Visual Studio 2017 target framework, oin both existing projects and new projects:

List

As suggested in similar topics I've tried with:

  • Installing both x64 and x32 versions of the SDK
  • Installing the runtime separately
  • Manually adding the installation path of the SDK to the environment variable PATH
  • Manually updating an existing project (not worked because it wasn't able to find the 2.1 SDK)
  • Restarting the PC
  • Switching language between my native language (Italian) and English

But it's still not listed.

Reading VS infos, I got that Visual Studio version is 15.7.2 (latest) and NET framework version is 4.3.03056.

Executing dotnet --info from Powershell, i get this: version

Does anyone know how to solve that?

like image 583
Deadpool Avatar asked May 28 '18 13:05

Deadpool


People also ask

Does VS 2017 support .NET Core?

Visual Studio 2017 Support for .NET Framework, . NET Core, Mono, and . NET Native for Universal Windows Platform (UWP).

Is .NET Core 2.1 still supported?

NET Core 2.1 and . NET Core 3.1 are long-term support versions, which means they're supported for 3 years after release. This is explained in the . NET Core Support Policy.

What is the .NET framework for Visual Studio 2017?

Visual Studio requires . NET Framework 4.7. 2 to run, but this will be installed during setup. Windows 10 Enterprise LTSC edition and Windows 10 S are not supported for development.


1 Answers

Naming is totally confusing. You need to install the 2.1.300-rc1 SDK to get .Net Core 2.1.

C:\>dotnet --info
.NET Core SDK (gemäß "global.json"):
 Version:   2.1.300-rc1-008673
 Commit:    f5e3ddbe73

Laufzeitumgebung:
 OS Name:     Windows
 OS Version:  10.0.16299
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.300-rc1-008673\

Host (useful for support):
  Version: 2.1.0-rc1
  Commit:  eb9bc92051

.NET Core SDKs installed:
  2.1.300-rc1-008673 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.1.0-rc1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
like image 174
magicandre1981 Avatar answered Oct 02 '22 01:10

magicandre1981