【问题标题】:How do we see the assemblies installed on VSTS build server我们如何看到安装在 VSTS 构建服务器上的程序集
【发布时间】:2017-11-29 01:38:18
【问题描述】:

我在 Visual Studio 在线服务器上收到此错误。我想看看为什么会失败?如何查看 Visual Studio 构建代理上安装的内容?

错误

2017-06-20T15:11:00.0341044Z ##[错误] System.Exception:非 匹配响应代码:InternalServerError - {"message":"一个错误有 发生。","exceptionMessage":"无法加载类型 'Microsoft.ServiceFabric.Data.Collections.IReliableConcurrentQueue`1' 从程序集'Microsoft.ServiceFabric.Data.Interfaces, 版本=5.0.0.0,文化=中性, PublicKeyToken=31bf3856ad364e35'.","exceptionType":"System.TypeLoadException","stackTrace":" 在 Infrastructure.ExceptionHandling.ExceptionHelper.ThrowIfUnhandled() 在 d:\a\1\s\Infrastructure\Infrastructure.ExceptionHandling\ExceptionHelper.cs:line 45\r\n 在 xxxx.WebApi.Controllers.yyyyTypesController.d__8.MoveNext() 在 d:\a\1\s\Orchestration\xxxxGenius\xxxxx.WebApi\Controllers\yyyyTypesController.cs:line 142\r\n--- 堆栈跟踪从上一个异常位置结束 被抛出 ---\r\n 于 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务)\r\n 在

我应该点击哪里?

【问题讨论】:

  • 您能否分享一个可以重现此问题的简单示例?
  • 程序集Microsoft.ServiceFabric.Data.Interfaces 来自哪里? Nuget包?或者它是对硬盘驱动器上的程序集的引用(源代码控制)?

标签: visual-studio msbuild azure-devops azure-pipelines azure-pipelines-build-task


【解决方案1】:

构建告诉你它失败的原因:它找不到程序集Microsoft.ServiceFabric.Data.Interfaces

托管代理上加载的软件是well documented。如果托管代理没有您需要的东西,并且您无法将其安装为 NuGet/NPM 包,那么您必须设置自己的代理,其中包含所需的软件。

【讨论】:

  • 感谢我已经创建了我们自己的构建代理。我想如果你真的想定期更新你的应用程序,你需要自定义构建服务器。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-07
  • 2022-07-02
  • 1970-01-01
  • 2010-11-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多