You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

本地部署的Team Foundation Server 2017无法构建多目标类库问题求助

本地部署的Team Foundation Server 2017无法构建多目标类库问题求助

问题背景

我将几个类库调整为多目标框架:net481;net8.0,在本地Visual Studio环境中构建完全正常,运行时也没有出现任何错误。

但通过本地部署的Team Foundation Server 2017进行构建时,却始终触发如下错误:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v8.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

已尝试的操作

  • 已经在运行TF构建代理的服务器上安装了.NET SDK 8.0,甚至在TFS服务器本体也进行了安装,但问题依旧没有解决。
  • 先后尝试过普通构建步骤和MSBuild步骤,两种方式下都会出现相同的错误。

求助

请问我还能尝试哪些方法来解决这个问题?

备注:内容来源于stack exchange,提问作者Thierry Verhaegen

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 10:08:00