How to set package download location in Nuget.targets file

Topics: General
Jun 11, 2014 at 11:12 PM
I tried putting Nuget.config file in solution directory as below but that didn't work
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="repositoryPath" value="..\..\Libraries\Packages" />
  </config>  
</configuration>
Then i found in our solution MSBuild-Integrated package restore approach is enabled for the solution. As per Nuget's documentation "if NuGet recognizes that the MSBuild-Integrated package restore approach is enabled for the solution, automatic package restore is skipped. MSBuild-Integrated package restore is identified by checking the existence of the .nuget\NuGet.targets file at the solution root."

So which value i need to change in Nuget.targets file so that the package will get downloaded when we want.