NuGet Package Restore Not Working

后端 未结 20 2097
情书的邮戳
情书的邮戳 2020-12-02 04:06

I checked in a project on one computer, checked out on another, and find that the binaries installed by NuGet are missing. I could check them in to source control as well,

20条回答
  •  没有蜡笔的小新
    2020-12-02 04:47

    If none of the other answers work for you then try the following which was the only thing that worked for me:

    Find your .csproj file and edit it in a text editor.

    Find the tag in your .csproj file and delete the whole block.

    Re-install all packages in the solution:

    Update-Package -reinstall
    

    After this your nuget packages should be restored, i think this might be a fringe case that only occurs when you move your project to a different location.

提交回复
热议问题