如果已删除,则从 NuGet 获取 DLL
我在 NuGet 上读了很多书,但似乎找不到我想要的东西。本质上,我希望它能像 Apache Ivy 一样工作,您只需签入您的配置文件(无需任何二进制文件)并告诉 NuGet 获取所有 DLL,从而使您免于对大量 DLL 进行版本控制。
因此:NuGet 中是否有一个命令来获取和配置 packages.config
中提到的所有依赖项?
同样,这种情况是我只将 packages.config 检查到源中控制,而不是实际的 DLL,我需要重新获取所有内容。 (最好不要按名称一一获取包)。
I've done a fair bit of reading on NuGet, and I can't seem to find what I want. Essentially, I'm hoping that it will work like Apache Ivy, where you can just check in your config file (without any binaries) and tell NuGet to fetch all the DLLs -- thus saving you from versioning tons of DLLs.
Hence: is there a command in NuGet to fetch and configure all dependencies mentioned in packages.config
?
Again, the case for this is that I only checked packages.config into source control, not the actual DLLs, and I need to re-fetch everything. (Preferably without fetching packages one by one by name).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最近的博客文章对此进行了介绍:
NuGet 的未来版本中将提供此功能的内置功能:http://feeds.haacked.com/~r/haacked/~3/x8g_kFzD4eA/feedback-request-for- using-nuget-without-committing-packages.aspx
(从上面链接)今天如何使用命令行
NuGet.exe
(可用来自 CodePlex 上的 NuGet 页面):http://blog.davidebbo.com/2011/03/using-nuget-without-committing-packages。 html编辑:现在也涵盖 NuGet 文档页面
This has been covered recently in blog posts:
Inbuilt functionality for this is coming in a future version of NuGet: http://feeds.haacked.com/~r/haacked/~3/x8g_kFzD4eA/feedback-request-for-using-nuget-without-committing-packages.aspx
(Linked from above) How to do this today using command line
NuGet.exe
(available from the NuGet pages on CodePlex): http://blog.davidebbo.com/2011/03/using-nuget-without-committing-packages.htmlEDIT: Now also covered on NuGet's Documentation Pages