TeamCity Nuget install build step not working with multiple sources, one of them TC's private NuGet feed

后端 未结 3 1028
深忆病人
深忆病人 2021-02-08 21:55

I receive the following error in NuGet Install build step when setting sources to TeamCity\'s NuGet server:

Step 1/4: NuGet install (NuGet Installer) (3s)

[15:1         


        
3条回答
  •  死守一世寂寞
    2021-02-08 22:13

    You can specify custom feeds just for solution via nuget.config file.

    The key point is to provide credentials section packageSourceCredentials like this:

    
    
      
        
      
      
        
      
      
        
          login
          pa$$w0rd
        
      
    
    

    This config file should be next to the sln file in repository.

提交回复
热议问题