Visual Studio 2019 Net 5 ASP.NET Core WebApp Error MSB3644 The reference assemblies for .NETFramework,Version=v5.0 were not found - asp.net-core

I create a project as per the screenshots and the following error appears when I try to Build or Run.
Error MSB3644 The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks WebApplication1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 1177
Below is my about screen, shouldn't show with Net Version 5.0 as opposed to Version 4.8.03752?
If I visit the following link:
https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
It states that my NET version was part of my Visual Studio 2019 (16.3 update)

.NET 5 is actually .NET Core 5 and replaces .NET 4.x. New development continues on the .NET Core line only. .NET Old will only get fixes from now on. That's why you won't see any .NET Old versions beyond 4.8 in Visual Studio.
.NET 5 is supported in the latest Visual Studio version, 16.8. You need to upgrade to the latest version. The final of both .NET 5 and Visual Studio 16.8 were released yesterday during dotNETConf 2020. You can find the first day's sessions in .NET's YouTube channel.
The sessions explain what .NET 5 is, what's new, how to port existing applications from .NET Framework 4.x to .NET 5 including desktop applications like Windows Forms and WPF applications.
Some early .NET 5 previews were supported in 16.7 but the latest previews and RC versions were only supported on 16.8

Related

.NET Framework 4.8 is installed but not showing in Visual Studio 2022

I am having issues while creating a project, it didn't show .Net framework 4.8. But I have already installed it. .Net SDK also installed.
When I check Programs and features in control panel, there is no source of Microsoft .Net framework 4.8. But it is showing .Net framework 7.0 and other versions.
After that I checked in Registry editor Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full there it is showing 4.8 version. But its not showing in Visual studio 2022.
Tried with some solutions through google and youtube. There is no use

.Net5 sdk is installed but why can't choose to create project

I recently installed versions of .net core sdk 3.1 and 5. When using the .net5 version today, I found that I couldn't select the version when I created the project, only version 3.1. So I opened the terminal and entered the command: dotnet --list-sdks to query all my installed versions and found that only 3.1.405[C:\Program Files\dotnet\sdks] is displayed. What is the reason for this? I'm sure I have the sdk for .net5 installed. I got it from this site.
https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
I recently installed versions of .net core sdk 3.1 and 5. When using
the .net5 version today, I found that I couldn't select the version
when I created the project, only version 3.1
The issue might relates the Visual Studio version. From the Asp.net core document and the SDK download page, we can see that to use Asp.net 5, it required Visual Studio 2019 16.8 or later version:
So, you can upgrade the VS 2019 version to Visual Studio 2019 16.11.9 version or Visual Studio 2022, and then in the Visual Studio Installer click the "Modify" button on the installed Visual Studio, in the popup window, go to the Individual components panel, checked the .NET 5.0 runtime option:
Then when create new applications using Visual Studio, you can choose the .Net 5.0 version.

ASP.NET Core 3.0 not showing on Visual Studio 2019 Enterprise

I cannot create an ASP.NET Core 3 project. I do not have the option in the drop-down.
I have reviewed ASP.NET Core 3.0 not showing on Visual Studio 2019
but these "solutions" are not applicable or do not work on my system. I suspect this is because i have VS Enterprise vs a different level. For example my options under "Preview Features" appears completely different than what is shown in the thread mentioned above.
I only have 64-bit SDKs installed. I am running the latest rev of VS 2019. I have the latest .net Core 3.0 preview installed. (as of August 20th, 2019)
I can create a .net Core 3 console app, but if I attempt to create an ASP.NET Core 3 application, I cannot select .net Core 3 as the target, only 2.2.
Any ideas?
To my understanding, the latest RC and preview9 will only work with Visual Studio 2019 v16.3 ... not in 16.2.x. Preview 8 seemed to work fine for me.

How to update Visual Studio 2017 Template from ASP.NET Core 2.0 to 2.1

I have installed Visual Studio 2017 Community Version 15.7.5 2 days back and everything is up-to-date but the version of ASP.Net Core is 2.0 and I need it to be 2.1.
I am unable to find a way to update it to version 2.1. I have also searched the internet but there are ways to upgrade projects not to update this. So any ideas or help would be appreciated
It looks like the SDK for .NET Core 2.1 is not installed. I have recently faced the same issue after .NET Core 2.1 was released.
To solve it, download and install the SDK for .NET Core 2.1 following the steps below. Also, note that you need to run Visual Studio 2017 15.7 or newer version, as specified in the .NET Core 2.1 download page.
Close all running Visual Studio instances.
Download the .NET Core SDK from the Microsoft download page. At the time of writing this answer, you will find version 2.1 to be the latest available.
Run the installer and follow the installation steps.
Run Visual Studio: now you should be able to create .NET Core applications targeting version 2.1.

ASP.NET Core 2.1 in Visual Studio 15.6.3

Can I work in my ASP.NET Core 2.1 Preview 1 project in Visual Studio 2017 (15.6.3) which is released today? https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.6.3
I've been using Visual Studio 2017 Preview version to work on my ASP.NET Core 2.1 project up until now -- as this article suggests: https://blogs.msdn.microsoft.com/dotnet/2018/02/27/announcing-net-core-2-1-preview-1/
I want to know if I can switch back to the stable version of Visual Studio 2017 now.
When launching a solution that contains a .NET Core 2.1 project with Visual Studio 15.6.3, there will be the following message:
The link there goes to this page:
.NET Core 2.1 Preview 1
To create or open applications targeting .NET Core 2.1, Visual Studio 2017 15.7 or newer is recommended. Right now 15.7 is only available as a preview, so please use the latest Visual Studio 2017 Preview.
Visual Studio 2017 15.6 supports creating and opening applications targeting .NET Core 2.1, but it contains known issues so 15.7 or newer is recommended.
Visual Studio 2017 15.5 does not support creating or opening applications targeting .NET Core 2.1.
So you can absolutely use VS 15.6 for .NET Core 2.1 projects. In fact, just today I was working on a .NET Core 2.1 project (actually using a daily build), and I did not encounter any issues with my non-preview Visual Studio.
But there may be issues, e.g. with tooling related to scaffolding, so you should be prepared that things might break. But for normal work on an existing code base, there shouldn’t actually be any problems. And you could always fall back to the dotnet CLI for the things that don’t work.
tl;dr With the 15.6.3 update, there is still no official support for .NET Core 2.1 projects but there may be very few issues that will prevent you from actually working with it.