Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I just got latest from develop branch and have following errors trying to run the project:

Severity  Code  Description  Project  File  Line  Suppression State
Error    The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.  Nop.Web  C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets  135  


Any ideas? Do I have to upgrade .net core to v2.1?

Thanks,
Justin
5 years ago
Following is my dotnet info, as you can see, I have v2.1 already.

C:\Users\Justin>dotnet --info
.NET Command Line Tools (2.1.201)

Product Information:
Version:            2.1.201
Commit SHA-1 hash:  7932dc6179

Runtime Environment:
OS Name:     Windows
OS Version:  10.0.16299
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.1.201\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.7
  Build    : 2d61d0b043915bc948ebf98836fefe9ba942be11
5 years ago
Does anyone see this issue?
5 years ago
The way Microsoft name .net core versions is messed up. Although you would see .net core 2.1 already installed on your machine, t is not. That v2.1 doesn't mean v2.1 and it represents v2.0.

Turns out installation of latest .NET Core 2.1 solves the problem.

https://www.microsoft.com/net/download/windows

I would suggest all of you to install the latest .net core 2.1 sdk to avoid build problems.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.