TFS 2013 Build Controller Not Respecting NuGet Package Restore

后端 未结 2 1241
花落未央
花落未央 2021-01-18 00:59

We are using VSO with an on-prem build controller (TFS 2013). I\'ve enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecat

2条回答
  •  温柔的废话
    2021-01-18 01:51

    For anyone who stumbles here with the issue I had (some but not all packages being restored on a build server), the final piece of the puzzle for me was adding a NuGet.config in the root of my solution, sibling to the .SLN file as David Ebbo explained here: http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html.

    From Ebbo's blog post, the file contents for me are simply

    
    
      
        
      
    
    

    Sadly, I don't understand why that changed things for me. But it's working now and I'm moving on!

    UPDATE:

    The NuGet API URL has changed for v3 (current as of Sept 2016). From https://www.nuget.org/

    
    

提交回复
热议问题