Error occurred when min-code is specific on VAL 16.0 with CLI/SDK: 2.1.605(runtime- 2.1.12)
See original GitHub issueSteps to reproduce
- Create a new console app in VS(D16.0/28803.527(16.0.6 preview 1.0))
- Modify the csproj with the following:
<Project Sdk="Microsoft.NET.Sdk/min=9999">
It shows as below: - Reload the project,
Expected behavior
There’s a error in error list window: “The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.”
Actual behavior
Reload the project, it shows the error:
Note: Then, close the project and reopen it, reload the project again, it shows as below: Output info:
error : The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.
Detailed Information:
Version 2.1.605 of the .NET Core SDK is smaller than the minimum version 9999 requested. Check that a recent enough .NET Core SDK is installed, increase the minimum version specified in the project, or increase the version specified in global.json.
Note: Not repro on val 15.9 with CLI/SDK: 2.1.508(runtime- 2.1.12).
Environment data
dotnet --info
output:
.NET Core SDK (reflecting any global.json):
Version: 2.1.605
Commit: 6758443bff
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.605\
Host (useful for support):
Version: 2.1.12
Commit: ccea2e606d
.NET Core SDKs installed:
2.1.605 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.
```1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Download .NET Core 2.1 (Linux, macOS, and Windows)
NET Core 2.1 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of ......
Read more >NET Core 2.1.12
Release 2.1.12 of .NET Core, released on 2019-07-09. versionsof.net gives an overview of all releases and versions of .NET Core.
Read more >The current .NET SDK does not support targeting . ...
and installed aspnetcore-runtime-2.1.0-preview1-final-win-x64 and .net core SDK 2.1.4. When I created a new web application I get an error ...
Read more >The current .NET SDK does not support targeting . ...
After project created, there is an error in. Error List : The current .NET SDK does not support targeting .NET Core 2.2. Either...
Read more >Chapter 1. Using .NET Core 2.1 on Red Hat Enterprise Linux
This method ensures the application is using an up-to-date version of .NET Core, built by Red Hat, that includes a specific set of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The test steps seem to be missing the modification to the csproj file. I believe the modification is to add -
<Project
Sdk=“Microsoft.NET.Sdk/min=9999”>I fixed up the test instructions on this.