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

后端 未结 19 1497
南方客
南方客 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:18

    In my case, I had to remove the following from the .csproj file:

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

    In fact, in this snippet you can see where the error message is coming from.

    I was converting from MSBuild-Integrated Package Restore to Automatic Package Restore (http://docs.nuget.org/docs/workflows/migrating-to-automatic-package-restore)

提交回复
热议问题