skip to Main Content

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


  1. Somehow using a VPN solved my Issue.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search