Saturday, April 12, 2014

NuGet putting the references in a diffrent folder location

I didn't like the default folder Nuget used to put the references. to change the default do the following:

  • Create a nugget.config file under the solution
  • Put the following xml in it
  • Add your nugget packages
<configuration>
  <config>
    <add key="repositoryPath" value="..\Bin\Packages" />
  </config>
  ... 
</configuration>
That's it... you should see your references in a bin\packages folder. (Tested in Visual Studio 2013)

No comments:

Post a Comment