This project references NuGet package(s) that are missing on this computer

后端 未结 19 1448
南方客
南方客 2020-11-28 00:29

I have an ASP.NET MVC5 application that worked yesterday and now I am getting this error when I try to build:

This project references NuGet package(s)

19条回答
  •  离开以前
    2020-11-28 01:09

    I have the same issue. I encountered it when I copied an existing project and transferred it on the folder of my solution directory and added it as existing project to my empty solution. So I have to edit my csproj file and look for this specific line of code, most of the time, this is can be found on the last lines:

      
    

    After that line, I have to comment these out:

      
      
        
          This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
        
        
        
      
      
    

    Your solution will prompt that there was a change on your project, just select Reload All:

    Then everything works fine after rebuilding my solution.

提交回复
热议问题