“Unable to find version” during TFS Build 2015 when restoring NuGet packages

前端 未结 4 1638
忘了有多久
忘了有多久 2020-12-31 03:24

I\'m having troubles with NuGet package restoring during a TFS Build 2015.

Since some packages require NuGet 3.x client, I\'ve configured the new scriptable build to

4条回答
  •  伪装坚强ぢ
    2020-12-31 03:37

    In my case, the issue was that user-wide NuGet.config located at C:\Users\[User name]\AppData\Roaming\NuGet\NuGet.config (where [User name] is the user who's running the build agent's Windows service) was pointing to NuGet API v2 while my build is already using NuGet Command-Line 3.x.

    
    
      
        
        
        
      
     
    

提交回复
热议问题