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

VS2019中找不到TextTransform.exe导致构建失败求助

C#项目在Visual Studio 2019构建时出现TransformOnBuildTask失败错误

我有一个C#项目在Visual Studio 2019中构建时出现如下错误:

"The "TransformOnBuildTask" task failed unexpectedly.
System.Exception: Failed to find TextTransform.exe
   at Clarius.TransformOnBuild.MSBuild.Task.TransformOnBuildTask.GetTextTransformExePath()
   at Clarius.TransformOnBuild.MSBuild.Task.TransformOnBuildTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()"

我尝试过多种解决方案,还尝试安装推荐的NuGet包,但安装失败,错误信息如下:

NuGet\Install-Package : Could not install package 'JohnVerbiest.TransformOnBuild 1.3.2'. You are trying to install this package into a project that targets 'native,Version=v0.0', but 
the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ NuGet\Install-Package JohnVerbiest.TransformOnBuild -Version 1.3.2

目前我无法构建该项目及解决方案,恳请各位提供帮助。

内容的提问来源于stack exchange,提问作者Deep

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.08 17:07:23