'Uno Platform Project reports: The reference assemblies for .NETFramework,Version=v5.0 were not found

enter image description here

I am trying to create and run an Uno Platform app using Visual Studio Community 2019. It always reports the error:

The reference assemblies for .NETFramework,Version=v5.0 were not found

even I downloaded and installed pack at

https://aka.ms/msbuild/developerpacks

it still reports same error

your comment welcome



Solution 1:[1]

  1. Make sure you installed all prerequisites.
  2. Make sure you installed the Uno Platform Solution Templates Visual Studio Extension.
  3. Create your project using the Cross-Platform App template.

Full guide: https://platform.uno/docs/articles/get-started-vs.html

Solution 2:[2]

Try move your project from C: to D:.

That's what I did and it worked.

I don't know why. Could somebody explain that?

----------edit----------

Try move your project to parent directory, or another directory

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Batesias
Solution 2