Add NuGet Packages Folder to Solution File?

走远了吗. 提交于 2019-12-06 18:12:22

问题


Nuget puts the package in my root folder(in my case my trunk folder). I am wondering is there a way to let VS 2010 know about this folder? I am using ankh svn to do my commuting so it would be really nice to have it in my solution so when I add a reference I can commit it from VS 2010 and not have to go to my trunk and manually do it.

Can this be done?


回答1:


The easiest way to do this currently is by using the Working Copy Explorer (View -> Working Copy Explorer). From here you can browse your solution folder, and add the reference.

I added the idea to enhance this to the AnkhSVN feedback forum, please go vote :-)




回答2:


You may be interested in reading this NuGet doc:

Using NuGet without committing packages to source control




回答3:


You should consider 'don't commit packages workflow'. It is much more mature solution:

http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html




回答4:


You can add the packages directory as a web project. I use TFS so the only issue is after adding a package I need to include these files to the source control but at least there visible...



来源:https://stackoverflow.com/questions/4777563/add-nuget-packages-folder-to-solution-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!