[C#][ASP.NET] The reference assemblies for framework .NETCore, Version=v5.0 were not found
So Stupid error while working
- Causing issue
While you git clone a dotnet 5 project or setting up a .Net Core 5 project, you got this in your build.
The Target framework in the properties of project can’t set to core 5 & can’t find .Net 5 in system. Only listing the .net framework
Step 1: Install .Net 5 SDK from Microsoft.
Step 2: Update your VS2019 to version 16.8 or upper version [Important]
Then you’ll find the properties in your project comes out normally, you now can build the project without errors.
Cause the msbuild in VS2019 is too stupid to understand .Net 5 before version v16.8, so upgrade it to make it work properly.