我正在尝试在teamcity中建立一个构建管道。我的管道在.Net build上失败了,看起来teamcity正在尝试使用.Net Core3.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版本来构建我的应用程序?
发布于 2021-08-09 10:21:03
我猜测生成代理上没有安装.NET 5.0SDK。
我已经在我的代理上安装了5.0 SDK,它似乎只是在没有其他更改的情况下使用它们。
https://stackoverflow.com/questions/68088425
复制相似问题