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

前端 未结 15 1823
误落风尘
误落风尘 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:41

    In addition to Shane Kms answer, if you've activated Nuget Package Restore, you edit the NuGet.config located in the .nuget-folder as follows:

    
    
      ..\..\ExtLibs\Packages
    
    

    Notice the extra "..\", as it backtracks from the .nuget-folder and not the solution folder.

提交回复
热议问题