問題:
I checked in a project on one computer, checked out on another, and find that the binaries installed by NuGet are missing.我在一臺計算機上籤入一個項目,在另一臺計算機上籤出,發現 NuGet 安裝的二進制文件丟失了。 I could check them in to source control as well, but it looks like there's a better solution:我也可以將它們簽入源代碼管理,但看起來有更好的解決方案:
http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages
I followed those instructions, now have a .nuget
folder where one should be, have the following entries in my .csproj file:我遵循了這些說明,現在應該有一個.nuget
文件夾,在我的 .csproj 文件中有以下條目:
<RestorePackages>true</RestorePackages>
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
and yet when I rebuild my solution, the missing packages are not restored.然而,當我重建我的解決方案時,丟失的包沒有恢復。
What am I missing?我錯過了什麼? How can I diagnose this problem?我該如何診斷這個問題?
解決方案:
參考一: https://en.stackoom.com/question/boP3參考二: https://stackoom.com/question/boP3