【问题标题】:Build failing on Teamcity在 Teamcity 上构建失败
【发布时间】:2020-01-19 12:59:30
【问题描述】:

尝试在 Teamcity 上建立构建,以前从未这样做过,所以我不知道自己在做什么。它失败并出现以下错误:

C:\Program Files\dotnet\sdk\2.1.4\Microsoft.Common.CurrentVersion.targets(2659,5): error MSB4062: The "Microsoft.Build.Tasks.ResolveComReference" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.  Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

谁能帮我解决这个问题?这是什么意思,我该如何解决?

【问题讨论】:

    标签: asp.net .net build msbuild teamcity


    【解决方案1】:

    我想,您正在使用不支持此目标的 .net core build 命令。 Here 是一种解决方法,或者只是将 MSBuild 用于 VS2017。这是一个关于这个问题的相关帖子:https://github.com/dotnet/cli/issues/9558

    【讨论】:

      猜你喜欢
      • 2019-06-28
      • 2019-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多