Cause of the problem: 2.1.1 installed directly using the. NET core 2.1SDK computer does not have the SDK for 2.1.0 installed
Error in project development process: current. NET SDK does not support setting the. NET Core 2.1.1 as the target. Set the. NET Core version 2.1 or earlier to target, or use the. NET SDK version that supports. NET Core 2.1.1. As shown in the following:
Even if you install Microsoft.NETCore.App in VS, the 2.1. Version 1 of this package still has an error.
The trial found that vs currently (2018-8-10) can only use MICROSOFT.NETCORE.APP's 2.1.0 version of the package
I then installed the new. NET SDK to support
Package Address: https://download.microsoft.com/download/D/7/8/D788D3CD-44C4-487D-829B-413E914FB1C3/ Dotnet-sdk-2.1.300-preview1-008174-win-x64.exe
Although this installation package name is dotnet-sdk-2.1.300, this installation package is indeed the 2.1.0 SDK installation package such as:
2.1.0 version of the package used in the project Microsoft.NETCore.App all OK
The vs2017 version of the Net Core SDK is not supported in versions 15.7.6 2.1.0