在 Teamcity 上构建失败
Build failing on Teamcity
尝试在 Teamcity 上建立一个构建,以前从未这样做过,所以我不知道我在做什么。它因以下错误而失败:
C:\Program Files\dotnet\sdk.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.
有人可以帮我解决这个问题吗?这是什么意思,我该如何解决?
我想,您正在使用不支持此目标的 .net 核心构建命令。
Here is a workaround or just use MSBuild for VS2017. Here is a related thread about the issue: https://github.com/dotnet/cli/issues/9558
尝试在 Teamcity 上建立一个构建,以前从未这样做过,所以我不知道我在做什么。它因以下错误而失败:
C:\Program Files\dotnet\sdk.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.
有人可以帮我解决这个问题吗?这是什么意思,我该如何解决?
我想,您正在使用不支持此目标的 .net 核心构建命令。 Here is a workaround or just use MSBuild for VS2017. Here is a related thread about the issue: https://github.com/dotnet/cli/issues/9558