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

前端 未结 4 1670
忘了有多久
忘了有多久 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:31

    If for some reason updating the NuGet.config in the Roaming folder is not an option or unwanted, it is also possible to add the config file to the solution root.

    According to the docs:

    • Project-specific NuGet.Config files located in any folder from the solution folder up to the drive root. These allow control over settings as they apply to a project or a group of projects.
    • A solution-specific NuGet.Config file located within a .nuget folder in the solution. Settings in this file apply only to solution-wide packages and is supported only in NuGet 3.3 and earlier. It is ignored for NuGet 3.4 and later.

    Config file locations and uses

提交回复
热议问题