TF270015:'pdbstr.exe' 返回了意外的退出代码。应为“0”;实际'-1'。有关详细信息,请参阅构建日志

TF270015: 'pdbstr.exe' returned an unexpected exit code. Expected '0'; actual '-1'. See the build logs for more details

我在 Team Foundation Server 2012 上尝试构建我们的 VS2015 解决方案时遇到此错误。我们有其他解决方案可以正常工作,这是唯一给出错误的解决方案。

TF270015: 'pdbstr.exe' returned an unexpected exit code. Expected '0'; actual '-1'. See the build logs for more details.
pdbstr.exe: error 0x7e loading mspdb60.dll

请帮忙!谢谢。

退出代码不足以解决问题。您能否在 TFS 构建日志中提供详细的错误消息?

要缩小问题范围,请尝试以下步骤:

  1. 正在查看 Windows 事件日志以检查是否有一些 与此错误相关的信息
  2. 你可以做个测试直接用VS来构建你的解决方案文件 在本地和 TFS 构建代理中。
  3. 这个支持是环境问题,还请确认有 pdbstr.exe 在构建服务器上,与本地机器相同。

我已经将 mspdb60.dll 放在 droplocation 中,现在错误不再发生。

谢谢大家的帮助!