Is it possible to change the location of packages for NuGet?

前端 未结 15 1974
误落风尘
误落风尘 2020-11-22 17:11

I have the following convention for most of my projects:

/src
    /Solution.sln
    /SolutionFolder
        /Project1
        /Project2
        /etc..
/lib
          


        
15条回答
  •  猫巷女王i
    2020-11-22 17:43

    Just updating with Nuget 2.8.3. To change the location of installed packages , I enabled package restore from right clicking solution. Edited NuGet.Config and added these lines :

      
        
      
    

    Then rebuilt the solution, it downloaded all packages to my desired folder and updated references automatically.

提交回复
热议问题