Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the Error MSB3644 in Visual Studio 2019 com. edition?

I have a dev machine with

  • Windows 10 version 1909 (build 18363.1016)
  • Visual Studio Community edition 2019 version 16.7.2
  • .net plataform sdk 5.0.100-preview.5.20279.10 (and olders)

I install net plataform sdk 5.0 to run Fluid UI Desktop apps (using C#). When i create and run a blank template project, i got the error MSB3644

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 WinUIdesktop2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 1177

On my comand line i checked the plataform SDK installed using dotnet --list-sdks

C:\Users\my_profile>dotnet --list-sdks
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.403 [C:\Program Files\dotnet\sdk]
2.1.504 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
2.1.802 [C:\Program Files\dotnet\sdk]
3.1.401 [C:\Program Files\dotnet\sdk]
5.0.100-preview.5.20279.10 [C:\Program Files\dotnet\sdk]

C:\Users\my_profile>

Any ideas on how to solve this issue?

like image 596
Pedro Polonia Avatar asked Aug 26 '20 13:08

Pedro Polonia


People also ask

What is reference assemblies folder?

Reference assemblies are usually distributed with the Software Development Kit (SDK) of a particular platform or library. Using a reference assembly enables developers to build programs that target a specific library version without having the full implementation assembly for that version.

How to resolve msb3644 error in Visual Studio Code?

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.

What version of Visual Studio 2019 do I need for NET 5?

Microsoft states that you need a 16.8 preview version to use .net 5.0, in case of .NET 5 Preview 8 you need Visual Studio 2019 16.8 Preview 2: .NET 5 Preview 8 requires Visual Studio 2019 16.8 Preview 2 to take full advantage of all its features. .

How to fix msb3644 error when creating blank template project?

When i create and run a blank template project, i got the error MSB3644 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.

What does msb3644 mean?

MSB3644: The reference assemblies for 'FrameworkVersion' were not found 02/10/2021 2 minutes to read g i In this article This error occurs when the .NET reference assemblies are not found for the version of .NET that a project


1 Answers

Microsoft states that you need a 16.8 preview version to use .net 5.0, in case of .NET 5 Preview 8 you need Visual Studio 2019 16.8 Preview 2:

.NET 5 Preview 8 requires Visual Studio 2019 16.8 Preview 2 to take full advantage of all its features. .NET 5 Preview 8 won't work properly in earlier versions of Visual Studio.

You use 16.7.2 so it is not compatible.

like image 179
magicandre1981 Avatar answered Oct 17 '22 21:10

magicandre1981