How to install a new target framework in Visual Studio
SDK or Runtime Version?
In my Asp.Net Core project, only the Target Framework .NET Core 2.0 is installed and available for selection.
Under the NuGet packages, however, new packages are available for updating, but these require the Target Framework .NET Core 2.1
How to get to the update or higher target framework in Visual Studio, although all updates were always made.
Problem:
if you check the application on NuGet Packages, new Nuget Package versions will appear.
However, installing the updates fails because it requires a higher .NET Core version
Restoring packages for D: \ Programming \ Web \ Freelance \ Freelance \ Freelance \ Freelance.csproj ...
NU1202: Package Microsoft.AspNetCore.All 2.1.1 is not compatible with netcoreapp2.0 (.NETCoreApp, version = v2.0). Package Microsoft.AspNetCore.All 2.1.1 supports: netcoreapp2.1 (.NETCoreApp, version = v2.1)
Package restore failed. Rolling back package changes for 'Freelance'.
Time Elapsed: 00: 00: 00.4482835
========== Finished ==========
Solution Update:
Under the Project Settings Application-> Target Framework
If you choose the item: Install other Framworks
Then switch to the download page of Visual Studio
.NET SDKs for Visual Studio
[Lnk "https://www.microsoft.com/net/download/visual-studio-sdks" /]
Then choose the SDK version
download
Then an installer version will be downloaded as Exe.
When the Installer Exe starts, the following appears: Microsoft .NET Core SDK 2.1.301
Instructions for checking the Visual Studio version
Check Visual Studio under Menu-> Help -> check for Updates
Result is here
Visual Studio Community 2017
Current Version 15.7.4
After 2 minutes the update is through
Afterwards the core version 2.1 will appear in the asp.net core projects