ASP.NET Core 3.0 not showing on Visual Studio 2019

前端 未结 17 1130
后悔当初
后悔当初 2020-12-08 12:41

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 o

相关标签:
17条回答
  • 2020-12-08 13:16

    This answer is for the newest .NET Core version as of 10/11/2020, which is .NET Core 5.0

    Specs: VS Version 16.8.0

    Target Version of .Net Core: 5.0

    You must have version 16.8.0 in order to have .Net Core 5.0

    If you still have problems with Visual Studio not showing .Net Core 5.0 in Visual Studio version 16.8.0 (and assuming you downloaded the .NET Core 5.0 SDK for Visual Studio), well, apparently (and correct me if I'm wrong) it is now called just .Net 5.0, omitting the Core.

    After selecting .NET 5.0, I was able to install other libraries which are currently version 5.0+ and dependent on .NET Core 5.0+

    Is the new name intentional? Anyways, here some evidence of this working (I was able to install the newest version of Newtonsoft and Entity Framework for .Net Core):

    Funny enough, when I try to create a new .Net Core project, the version shows up as expected:

    I'm very sorry for my English!

    [PS: I'm literally copying&pasting this answer, which I answered somewhere else, but given that, when you Google this issue, this stackoverflow question appears first. So thats why I'm reposting]

    0 讨论(0)
  • 2020-12-08 13:18

    I've encountered the same problem on a Mac and found a solution to this issue. On visual studio update tab (Visual Studio -> check for updates) there is a option to change channel to "Preview".

    After that you can download necessary updates and go using .net core 3.0

    0 讨论(0)
  • 2020-12-08 13:18

    I noticed an interesting behavior. I had the latest version of VS with all the dependencies installed. But when I try to add a new project to the solution, the dialog does not show me the options beyond .Net Core 2.2

    But When I create the new project from the startup page, the drop down does show the ASP.NET Core 3.1

    So I was able to work around the issue by creating the new project from the startup page, then add the existing project to the solution.

    0 讨论(0)
  • 2020-12-08 13:21

    Note! (don't use it on your developer machine)

    0- make sure you installed .net core 3 sdk. dotnet --list-sdks

    1- make sure Tools -> Options that enables preview versions of the .NET Core SDK enabled.

    2- uninstall all x86 version of .net core sdk from your machine.

    3- restart visual studio and try to create a new project.

    0 讨论(0)
  • 2020-12-08 13:22

    I had this problem and solved it as follows:

    STEP 1: Download .NET Core 3.0

    STEP2: Enable the ability to consume preview SDKs by default, As shown below:

    0 讨论(0)
  • 2020-12-08 13:23

    Here is what I did to show .NET Core 3.0 in VS2019

    1. Installed .NET Core 3.0 SDK (No Success)
    2. Restarted VS2019 after installing .NET Core 3.0 SDK (No Success)
    3. Updated VS2019 (Worked Perfectly)
    0 讨论(0)
提交回复
热议问题