I have a Asp.Net Core Web App(.Net Framework).I am using VS 2015.
global.json
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
Problem
By default, all the nuget packages are referring to the default location C:\Users\XXX\.nuget\packages
.
It builds fine though I want to change this folder location to "C:\packages". This is what I have tried so far.
adding "packages" : "C:\packages" in global.json. -- did not work. rather build fails and packages are not resolved.
Adding nuget.config and setting the repository path.
.\packages -- It did not work. packages are being restored in the default location only.