visual studio - Change the location of packages for NuGet using the release note 2.1 doesn't work -
i trying alter location of default bundle folder nuget
i read many posts including documentation of nuget 2.1 release notes, new config nuget version 2.1 following:
<configuration> <config> <add key=" repositorypath" value=" c:\myteam\teampackages" /> </config> ... </configuration>
i read next thread, is possible alter location of packages nuget?
but configuration doesn't work?
the config work old 1 following:
<settings> <repositorypath>c:\myteam\teampackages</repositorypath> </settings>
i using visual studio 2012 update 1 including nuget bundle version 2.1
steps reproduce:
in solution directory, create file "nuget.config" edit nuget.config , add:<settings> <repositorypath>c:\myteam\teampackages</repositorypath> </settings>
delete default packages folder
in visual studio, right-click on solution, , select manage nuget packages install bundle (any package)
verify bundle downloaded c:\myteam\teampackages
delete downloaded bundle in c:\myteam\teampackages
change nuget.config following:
<configuration> <config> <add key="repositorypath" value="c:\myteam\teampackages" /> </config> </configuration>
try install library again.
i find library installed in packages folder not folder???
>>steps reproduce:
>>in solution directory, create file "nuget.config" release notes looks nuget.config in next order .nuget\nuget.config recursive walk project (.nuget) folder root global nuget.config (%appdata%\nuget\nuget.config)
so if nuget.config in project/solution folder won't honored. can seek moving .nuget folder , reload solution.
visual-studio visual-studio-2012 nuget nuget-package
No comments:
Post a Comment