问题描述
我试图建立与封装解决方案
(里面除了 repositories.config
)与MSBuild的内容缺失12.0。我希望它自动恢复所有丢失的包建立之前,但这种情况并非如此 - 的MSBuild报告错误万吨的:
I'm trying to build a solution with packages
content missing (except repositories.config
inside) with MSBuild 12.0. I expect it to auto restore all missing packages before building but this is not the case - MsBuild reports tons of errors:
是否缺少using指令或程序集引用?
的NuGet管理器2.7(我认为这在Visual Studio 2013箱左右)。我甚至试图通过 EnableNuGetPackageRestore = TRUE
参数 - 没有运气。我在想什么?
NuGet Manager is 2.7 (I see this in Visual Studio 2013 about box). I even tried to pass EnableNuGetPackageRestore=true
parameter - no luck. What am I missing?
推荐答案
请确保您已启用的NuGet包还原
选项的解决方案。任何项目可能包含 packages.config
,但是包还原选项应的解决方案级别启用。
Make sure you have enabled NuGet Package Restore
option for the solution. Any project may contain packages.config
, however the package restore option should be enabled on the solution level.
这篇关于的NuGet自动包还原不会用的MSBuild工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!