问题:
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