How Can I open .Net Core 3.0
project in Visual Studio 2017?
I have downloaded the .NET Core 3.0 SDK from dotnet.microsoft.com and created new project with dotnet new
command in a folder.
Building C# project shows error:
The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.
I checked it but it doesn't work in my case:
Visual Studio 2017 with .Net Core SDK 2.0
Visual Studio 2017 with .Net Core SDK 2.1
Install Visual Studio NET Core 3.1 is having long term support. Visual Studio 2017 supports . NET Core 2.1, whereas Visual Studio 2019 supports both the versions. You can use your favorite IDE, such as Visual Studio, Visual Studio Code, Sublime Text, etc. to develop, restore, build, and run .
Visual Studio 2017 Support for . Among the workloads and project types, you can find support for . NET Framework, . NET Core, Mono, and . NET Native for Universal Windows Platform (UWP).
The most important feature about . NET Core 3.1 is that it's a long-term support (LTS) release. If you're using Visual Studio 2019, you must update to Visual Studio 2019 version 16.4 or later to work with . NET Core 3.1 projects.
Unfortunately .NET Core 3 requires MSBuild 16. Even if you enable preview versions of .NET Core in VS 2017 as others have suggested you will still get the error:
The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.
If you create a global.json
file and put in eg.
{ "sdk": { "version": "3.0.100-preview5-011568" } }
You then get shown the real problem which is:
error : Version 3.0.100-preview5-011568 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.9.21.664. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.`
MSBuild 16 only comes with VS 2019, so, the answer is that you CAN use VS 2017 with .NET Core 3, but only if you also have VS 2019 installed as well!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With