Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: When package restore does not honor "repositoryPath" [2921]

$
0
0
In my Nuget.config I have specified a repository path:
<config>
<add key="repositoryPath" value="C:\Shared\Packages" />
</config>

When I install a package it correctly places the exploded files in this directory.
If I enable the package restore capability it does not honor the "repositoryPath" and instead restores the packages to a packages folder in the same directory as the .sln file. This is problematic on a build server.
since my .csproj references expect those files to be in the "C:\Shared\Packages" directory and since they are not restored to the correct directory the build will fail.
Comments: My solution file is located in ```.\Source\Application.sln```. I have the following setting in my ```.\Source\.nuget\NuGet.config file:``` ![Image](http://i.imgur.com/kuuacdK.png) But still, NuGet packages are restored in the default folder .\Source\packages instead of .\Packages: ![Image](http://i.imgur.com/wGuxLFt.png) Any ideas how to deal with it? It seems like ```repositoryPath``` settings is ignored in the NuGet's UI panel.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>