I am using Visual Studio Version 8.10.8 (latest) in macOS Big Sur. I have cloned a repository of Asp .Net project. When I try to run the project I get
NuGet packages need to be restored before building. NuGet MSBuild
targets are missing and are needed for building. The NuGet MSBuild
targets are generated when the NuGet packages are restore
this error.
Screenshot:
csproj of main project
Image of error.
2
Answers
Somehow using a VPN solved my Issue.
On your visual studio sidebar, click on the drop down dependencies folder. You will then find the NuGet folder, right click on it then select restore. It should work afterwards.