NuGet Package Restore cannot find package, has no Source

前端 未结 2 1914
忘掉有多难
忘掉有多难 2020-12-09 08:33

I have a package on my TeamCity NuGet feed, built by TeamCity, but a dependent TC project cannot see it during package restore.

[14:05:02][Exec] E:\\Team

2条回答
  •  离开以前
    2020-12-09 08:46

    Apparently NuGet custom feeds are set not via anything in the solution or project files, or nuget.config in the solution, but in the nuget.config in the developer's profile.

    Over on TeamCity, there's no check by the agent of this config file, or writing to it, to ensure it contains the feed for the TeamCity server itself.

    So package restore on TC using a custom TC feed won't 'just work'. You have to waste hundreds of pounds of client's money chasing your tail to discover all this and then set/copy your nuget.config from your profile into the profile of the user account running the build agent.

    Horrible.

提交回复
热议问题