SyntaxFix
Write A Post
Hire A Developer
Questions
The most consistent way is by using nuget config to explicitly set the config:
nuget config
nuget config -set repositoryPath=c:\packages -configfile c:\my.config
https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#changing-config-settings