项目从VS2013升级到2017年 - 找不到texttransform.exe [英] Project Upgrade from VS2013 to 2017 - Can't find texttransform.exe

查看:86
本文介绍了项目从VS2013升级到2017年 - 找不到texttransform.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在努力将2013年的工作项目升级到2017年。 在我们的项目中,我们有一个ore build事件来运行TT文件来更新汇编信息。

I'm working on upgrading a working project in 2013 to 2017.  In our project we have a ore build event to run a TT file to update assembly information.

set textTemplatingPath ="%CommonProgramFiles(x86 )%\ microsoft shared\TextTemplating\ $(VisualStudioVersion)\ texttransform.exe"
$
if%textTemplatingPath%==" \ microsoft shared\TextTemplating\ $(VisualStudioVersion) \texttransform.exe" set textTemplatingPath ="%CommonProgramFiles%\Microsoft Shared\TextTemplating\ $(VisualStudioVersion)\ texttransform.exe" b $ b $ textTemplatingPath%" $(ProjectDir)Properties \AssemblyInfo.version .tt"

set textTemplatingPath="%CommonProgramFiles(x86)%\microsoft shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe"
if %textTemplatingPath%=="\microsoft shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe" set textTemplatingPath="%CommonProgramFiles%\Microsoft Shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe"
%textTemplatingPath% "$(ProjectDir)Properties\AssemblyInfo.version.tt"

使用Visual Studio 2017,我在进行重建时收到错误消息

With Visual Studio 2017, I get the error message when doing a rebuild

严重程度

代码

描述

项目

文件

抑制状态

错误

命令"set textTemplatingPath ="%CommonProgramFiles(x86)% \ microsoft shared\TextTemplating\15.0\texttransform.exe& ";如果%textTemplatingPath%==" \ microsrosoft shared\TextTemplating\15.0\texttransform.exe" set textTemplatingPath ="%CommonProgramFiles%\ Macrosoft
Shared\TextTemplating\15.0\texttransform.exe"%textTemplatingPath%" C:\rw_apps \Software \DeviceDrivers \Oscilloscope\trunk \Source\externDevice\Properties\AssemblyInfo.version.tt""退出代码3.

The command "set textTemplatingPath="%CommonProgramFiles(x86)%\microsoft shared\TextTemplating\15.0\texttransform.exe"if %textTemplatingPath%=="\microsoft shared\TextTemplating\15.0\texttransform.exe" set textTemplatingPath="%CommonProgramFiles%\Microsoft Shared\TextTemplating\15.0\texttransform.exe"%textTemplatingPath% "C:\rw_apps\Software\DeviceDrivers\Oscilloscope\trunk\Source\externDevice\Properties\AssemblyInfo.version.tt"" exited with code 3.

设备

使用VS2017我看不到文件夹结构被调出,找不到texttransform.exe

With VS2017 I don't see the folder structure called out, and can't find the texttransform.exe

有什么建议吗? 

Any suggestions? 

谢谢

推荐答案

嗨威廉,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

错误代码3通常表示无效路径,请检查此文件的存档"%CommonProgramFiles%\ Mesrosoft Shared\TextTemplating \\ \\15.0\texttransform.exe " ;.

The error code 3 often means the invalid path, please check the exsting fo this file "%CommonProgramFiles%\Microsoft Shared\TextTemplating\15.0\texttransform.exe".

据我所知,现在T4文本模板包含在VS 2017安装程序中,请看下面的截图,你可以修改VS 2017安装程序并检查工作负载'Visual Studio扩展开发'以进行安装,默认选择
功能'文本模板转换'。

As far as I know, now the T4 Text Template is includes in the VS 2017 installer, please have a look at the following screenshot, you can modify the VS 2017 installer and check the workload 'Visual Studio extension development' to install it, it default selected the feature 'Text Template Transformation'.

我发现可以在VS 2017安装文件夹下找到'TextTransform.exe'文件
%ProgramFiles(x86)%\ microsoftoft Visual Studio \\\ 2017 \ Communmunity \Common7 \IDE 并参考有关无效路径的错误消息,您可以更正命令中的路径和清理项目,然后重新构建它以进行测试。

I found the file 'TextTransform.exe' can found under the VS 2017 installation folder %ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\IDE and refer to the error message about invalid path, you can correct the path in your command and clean the project, then re-build it to test.

同时,请确保您已安装
VS 2017的最新更新 
 如果你还没有insta它还没有,转到Tools-Extensions和Updates-Updates,这个更新应该显示并选择它来安装,因为我发现其他一些社区成员报告了

关于TextTransform的问题
,并在最新版本中修复。

Meanwhile, please make sure you already installed the latest update for VS 2017  and If you have not install it yet, go to Tools-Extensions and Updates-Updates, and this update should display and select it to install, since I found some other community members reported the issue about TextTransform and which is fixed in this latest version.

祝你好运,

Sara


这篇关于项目从VS2013升级到2017年 - 找不到texttransform.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆