Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core 3.0 not showing on Visual Studio 2019

I want to test the new Blazor server-side framework (aka Razor Components).

I installed Visual Studio 2019 RC, and then the .Net Core 3.0 preview 2, following this official tutorial.

After the install, I only see the ASP.NET Core 2.0 and the 2.1 on the "Create a new ASP.NET Core Web Application" page. The 3.0 is not showing up.

I started to mess around, trying to install other packages from this page, uninstalled and reinstalled Visual Studio 2019, updated to the .NET Core Preview 3, installed several times the x64 and x86 packages in different orders, copy/paste the .Net Core binaries to random folders and so on. Nothing works. The ASP.NET Core 3.0 does not show up.

Here is what my VS looks like when creating a project (the yellow message appeared latter after some messing around with the packages, so it is not the real problem):

enter image description here

Here is the output of the dotnet --list-sdks command:

enter image description here

EDIT

For some reason, I installed the Blazor VSIX package (the WebAssembly - not exactly what I want, but I installed it anyways) and now the ASP.NET Core 3.0 simply shows up. However, just for the blazor templates:

enter image description here

I don't understand. Is there anything obvious I'm missing?

like image 389
Guilherme Avatar asked Mar 06 '19 21:03

Guilherme


People also ask

Does Visual Studio 2019 Install .NET Core?

NET Core can be installed in two ways: By installing Visual Studio 2017/2019 or by installing . NET Core Runtime or SDK. . NET Core installer already contains ASP.NET Core libraries, so there is no separate installer for ASP.NET Core.

Does .NET Core 3.1 require Visual Studio 2019?

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.

How do I view .NET Core in Visual Studio?

NET Core is installed on Windows is: Press Windows + R. Type cmd. On the command prompt, type dotnet --version.


1 Answers

There is an option in Tools -> Options that enables preview versions of the .NET Core SDK. In the VS Preview shipping channel, it is on (by default, and not settable). In the VS Release channel, it defaults to off and you can opt-in.

"Use Previews of the .NET Core SDK" in the Tools->Options dialog

(Note: it's disabled in the screenshot because I have a Preview build installed.)

The reason for this is to allow you to customize whether a project using a released version of .NET Core (such as 2.1, the current LTS) will use tooling from the newer not-yet-release-quality SDK.

Prior to 16.1, this option was located on the Tools -> Options -> Projects and Solutions -> .NET Core page.

like image 76
Jimmy Avatar answered Oct 01 '22 10:10

Jimmy