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

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

    The most consistent way is by using nuget config to explicitly set the 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

提交回复
热议问题