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

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

I have the following convention for most of my projects:

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


        
15条回答
  •  感动是毒
    2020-11-22 17:31

    1. Create nuget.config in same directory where your solution file is, with following content:
    
    
      
        
      
    
    

    'packages' will be the folder where all packages will be restored.

    1. Close Visual studio solution and open it again.

提交回复
热议问题