【问题标题】:teamcity agent unable to build .Net 5teamcity 代理无法构建.Net 5
【发布时间】:2021-09-06 08:02:55
【问题描述】:

我正在尝试在 teamcity 中设置构建管道。我的管道在.Net build 失败了 看起来teamcity 正在尝试使用.Net core 3.1 构建它,而我的解决方案是.Net 5

完整的错误信息:C:\Program Files\dotnet\sdk\3.1.202\Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

如何告诉 teamcity 构建代理使用特定的 .Net 版本来构建我的应用程序?

【问题讨论】:

    标签: .net continuous-integration teamcity continuous-deployment


    【解决方案1】:

    我猜测 Build Agent 上没有安装 .NET 5.0 SDK。

    我已将 5.0 SDK 放在我的代理上,它似乎只是在使用它们而没有其他更改。

    【讨论】:

      猜你喜欢
      • 2021-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-09
      相关资源
      最近更新 更多