question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error occurred when min-code is specific on VAL 16.0 with CLI/SDK: 2.1.605(runtime- 2.1.12)

See original GitHub issue

Steps to reproduce

  1. Create a new console app in VS(D16.0/28803.527(16.0.6 preview 1.0))
  2. Modify the csproj with the following: <Project Sdk="Microsoft.NET.Sdk/min=9999"> It shows as below: image
  3. 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: image

Note: Then, close the project and reopen it, reload the project again, it shows as below: image 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:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
richaverma1commented, Jun 24, 2019

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”>

0reactions
nguerreracommented, Aug 13, 2019

I fixed up the test instructions on this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found