从团队城市发布到符号源

时间:2016-01-06 15:51:58

标签: nuget teamcity

我的Team City build中有一段时间,我无法将我的源NuGet包发布到symbolsource.org,因为它以500 Internal Server Error响应。

[16:02:36][push] Pushing NCode.Composition.DisposableParts 1.0.1 to the symbol server (http://nuget.gw.symbolsource.org/Public/NuGet)...
[16:04:18][push] Failed to process request. 'Internal Server Error'. 
[16:04:18][push] The remote server returned an error: (500) Internal Server Error..
[16:04:18][push] Process exited with code 1

我可以将我的普通包发布到NuGet.org就好了。我相信我已经正确配置了符号源记录的所有内容。

这是NuGet Publish的构建步骤配置:

  • 亚军类型:NuGet发布
  • NuGet.exe:默认2.8.6
  • 包裹:* .nupkg
  • API密钥:(我的个人API密钥来自NuGet.org)
  • 包装来源:(空白)

在我的构建输出目录和TeamCity识别的工件中,我确实有我的两个包:

  • NCode.Composition.DisposableParts.1.0.1.nupkg
  • NCode.Composition.DisposableParts.1.0.1.symbols.nupkg

任何帮助都将不胜感激!

1 个答案:

答案 0 :(得分:0)

我认为问题在于两个包含相同名称的包。您是否尝试过另一种构建配置和快照依赖性的解决方法? 我正在使用具有快照依赖性的另一个构建配置来构建生成* .nupkg和* .symbol.nupkg。工件依赖项设置为:

-:*.nupkg => <replace with location>
+:*.symbol.nupkg

构建配置仅将* .symbol.nupkg发布到symbolsource.org。

相关问题