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

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube