ASP.NET Core 3.0 not showing on Visual Studio 2019

前端 未结 17 1167
后悔当初
后悔当初 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]

提交回复
热议问题