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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube