.Net Core 2.2 Can't Be Selected in Visual Studio Build Framework

.NET Core 2.2 Can't be Selected In Visual Studio Build Framework

Configure Visual Studio 2017 15.9 to use the previews of .NET Core SDK (in Options) and restart VS.

Update in 2019:

Microsoft decides that VS2017/2019 should use different .NET Core SDK versions, so make sure you do install the correct versions for your VS versions, and read the official announcement here,

https://github.com/dotnet/announcements/issues/108

You might find the SDK version/VS version table in .NET Core release notes, such as https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.4/2.2.4.md

Is a good practice to subscribe to the Microsoft .NET and Visual Studio team blogs so that you can always learn the new things, like https://blogs.msdn.microsoft.com/dotnet/2018/11/13/net-core-tooling-update-for-visual-studio-2017-version-15-9/

Visual Studio does not display .NET Core 2.2 in Target Framework dropdown

Your Visual Studio Version is not up to date. You need to update it.

Visual Studio 2017 15.9 uses .NET Core 2.1 SDK by default after the workload is installed.

To update Visual Studio to use .NET Core 2.2 SDK:

Install the .NET Core 2.2 SDK.

Reference

PS: You need to restart visual studio. After you the installation of .Net Core 2.2 SDK.

How to get version 2.2 in visual studio for asp.net core

Shorten Answer:

Suggest you using official website to download ASP.NET Core SDKs and then run the downloaded file to install the SDK. Relaunch the Visual Studio and create a Web Application and then you'll find the ASP.NET Core 2.2.


From the release notes said Visual Studio 2017 support sdk version is end with SDK 2.2.106. Begin with SDK 2.2.203, you need use Visual Studio 2019 version 16.0. So Visual Studio 2017 does not support the latest version of ASP.NET Core 2.2. The latest version that Visual Studio 2017 can download is 2.2.106(Runtime version is 2.2.4).

Besides, the official document does not emphasize the Visual Studio 2017 specific version, it is better to use the latest version. Because if the Visual Stuidio version does not match the SDK version, it will not display ASP.NET Core 2.2 when you create a web application.

For example:

For my 64-bit version of Windows, I will choose the following link to download the sdk:

Sample Image

Note:

ASP.NET Core current release version is .NET 7 preview 1, ASP.NET Core 2.2 is actually an old version.

.NET Core 3.0 Can't be Selected In Visual Studio Build Framework

Visual Studio 2019 version 16.3 or higher is needed to be installed in order to use .NET Core 3.0 Framework in your project.

Prerequisites to develop .NET Core apps with Visual Studio

If you insist using Microsoft Visual Studio 2017, You need to enable "Use previews of the .NET Core SDK" from Visual Studio's tools | Options | Project and Solutions | .NET Core

Problem in Building Project in Asp.net Core 2.2

Its seems you have installed the wrong the version of .NET Core SDK for .NET Core 2.2.4 and Visual Studio 2017. You said that you have downloaded and installed the .NET Core SDK version 2.2.203 which is actually for Visual Studio 2019! That's the problem!

For Visual Studio 2017, Its SDK 2.2.106 for .NET Core 2.2.4. Please download it from here: https://dotnet.microsoft.com/download/dotnet-core/2.2 and install.

You error should go away now!

VS can't use .net package

What does it mean that the project cannot be opened using VS? You created the project can't display the file directory, is that so? It is possible that you did not install the SDK correctly.

The easiest way:

https://dotnet.microsoft.com/en-us/download/dotnet

You click to download the version you downloaded before, and then when you install it, if you already have this version of the SDK, an uninstall button will appear. You try to click uninstall and then reinstall. I tried it and it worked for me.

If you don't want to use this method and want to fix it manually, you can refer to this article:

https://github-wiki-see.page/m/OmniSharp/omnisharp-vscode/wiki/Troubleshooting%3A-%27The-.NET-Core-SDK-cannot-be-located.%27-errors

Why am I unable to select a Target Framework in Visual Studio 2019?

I think this is because you've created a 'SDK' type project. You need to use the Windows Forms App (.NET Framework) project to target the older frameworks.

Sample Image

.NET Core not showing in target framework dropdown for visual studio 2022

Create the app in either 5 or 6. Then in the Application properties change the Target Framework to .Net 3.1.

Change in Visual Studio after Project Creation

Long term support is limited for anything before .Net 5, so they are not making it an option on new projects and directing to the newer versions.

Target Framework not showing older .Net versions in Visual Studio 2022

Open Visual Studio Installer, click Modify and check if you installed older versions of .NET



Related Topics



Leave a reply



Submit