nuget卸载包与SVN工作副本
再会!
我从 VS2010 Express 上的 NuGet 1.2 开始。我在我的项目中使用 SVN(没有集成到 VS,只是 TortoiseSVN)。问题是——NuGet 似乎在解决方案的根目录中创建了文件夹 /packages/
。似乎卸载包时 NuGet 会删除包文件夹。这将破坏 SVN 工作副本。
有关 SVN 和 NuGet 协同工作的任何指南吗?
提前致谢!
更新:我并不是说删除整个 /packages/
文件夹,我的意思是,例如将 T4MVC 升级到 2.6.45 文件夹 /packages 时/T4MVC.2.6.44
(以及里面的 .svn 文件夹)将被删除,这将破坏 SVN 工作副本。
更新 2:正如我所检查的那样,如果文件夹中有不属于包的内容(在我的情况下是 .svn
文件夹),NuGet 不会删除文件夹。因此,如果您像我一样喜欢在 SVN 中存储包
- 升级后,您应该从 SVN 中删除旧版本包中留下的文件夹。
Good day!
I'm starting with NuGet 1.2 on VS2010 Express. I use SVN for my projects (without integration into VS, just TortoiseSVN). The question is -- it seems that NuGet creates folder /packages/
in the root of the solution. It seems that while uninstalling a package NuGet will remove the package folder. This will break the SVN working copy.
Any guidelines on SVN and NuGet working together?
Thanks in advance!
Update: I don't mean that the whole /packages/
folder is removed, I mean that, for example when upgrading T4MVC to 2.6.45 folder /packages/T4MVC.2.6.44
(along with .svn folder inside) will be removed and this will break SVN working copy.
Update 2: As I checked -- NuGet doesn't delete folders if something not belonging to package is inside it (.svn
folder in my case). So if you prefer to store packages
in SVN like I do -- after upgrade you should delete folder left from older version of the package from SVN.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种方法可以在不签入包文件夹的情况下运行 NuGet。您只需从 SVN 中排除整个文件夹,然后按照 David Ebbo 的帖子中概述的步骤操作即可:http://blog.davidebbo.com/2011/03/using-nuget-without-committing-packages.html
There is a way to run NuGet without checking in the Packages Folder. You would just exclude the whole folder from SVN and follow the steps outlined in David Ebbo's post: http://blog.davidebbo.com/2011/03/using-nuget-without-committing-packages.html