News

Quick Tip: How to Try .NET Core 3.0 in Visual Studio 2019

Microsoft recently confirmed that the upcoming .NET Core 3.0 release won't be ready for use when Visual Studio 2019 hits general availability on April 2, as .NET Core 3.0 won't ship until the second half of this year.

But that doesn't mean you have to wait until the second half of this year to put .NET Core 3.0 through its paces with Visual Studio 2019. In fact, you can do that now with the VS 2019 Release Candidate.

Some developers are unaware of this fact, as evidenced by a Developer Community post last week titled "No .net core 3.0 preview in Visual Studio 2019 RC."

In that post, a developer said:

I downloaded VS 2019 RC. When I tried compile .net core 3.0 project, I got a problem
NETSDK1045	The current .NET SDK does not support targeting .NET Core 3.0.  
Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 
In project properties in Target framework I don't see .net core 3 option to choose.
In VS 2019 preview I normaly can choose it and build the project.

While one developer noted that .NET Core 3.0 (still in preview) has to be downloaded manually to be used in VS 2019, that still didn't solve the problem for yet another developer who did download the .NET Core 3.0 preview only to find Visual Studio still didn't offer .NET Core 3.0 as a target framework.

Microsoft confirmed that "this is by design. .NET Core 3.0 will only be ready to RC much later than 16.0 and as such it is an out of band release to Visual Studio."

The last step, a Microsoft representative said, is to specifically opt in to use previews via the Visual Studio 2019 menus, specifically: Tools -> Options -> Projects and Solutions -> .NET Core -> Use Previews of the .NET Core SDK.

Opt In to .NET Core Previews
[Click on image for larger view.] Opt In to .NET Core Previews (source: David Ramel).

Then, upon a restart of the IDE, .NET Core 3.0 will appear in the list of target framework options.

For those visual learners out there, this procedure is explained in a video titled .NET Core 3 is not working in Visual Studio 2019 just published today (March 8) by Brian Lagunas, further speaking to the attention this issue is receiving lately in Microsoft developer land.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Microsoft Eases Integration with Semantic Kernel AI SDK

    The basic idea is to provide unified API abstractions, especially for idiomatic C# code, to help platform developers and others work with any provider with standard implementations for caching, telemetry, tool calling and other common tasks.

  • Final .NET 9 Preview Ships with Go-Live License

    Visual Studio developers can now download the SDK for .NET 9 Release Candidate 2 with a go-live license, meaning devs get Microsoft support for production applications even before the framework reaches general availability next month.

  • Upcycle Your Old Laptops into a Kubernetes Cluster

    Learn about Windows-to-Linux conversions and how to break and fix cloud containers -- all while helping to save the world from e-waste with some "sheer geeky fun."

  • Visual Studio's Future: Live Help to 'AI-ify Your App'

    Visual Studio guru Mads Kristensen provided a peek into the IDE's AI future, explaining how while in live-coding it will identify opportunities for your own app to use AI to your advantage.

Subscribe on YouTube