D
denkyira
Guest
I am using Visual studio Enterprise 2017 and have a pre-build event command line:
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\GlobalAssemblyInfo.tt"
But I am getting an error
Severity Code Description Project File Line Suppression State
Error 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:\Users\admin\Desktop\admin.Repository\\Properties\GlobalAssemblyInfo.tt"" exited with code 3.
I see that I don't have the path %CommonProgramFiles(x86)%\Microsoft Shared\TextTemplating\15.0\
but rather "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\TextTransform.exe"
modifying my pre-build command to use the path above is not working. what am I missing
Ebenezer
Continue reading...
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\GlobalAssemblyInfo.tt"
But I am getting an error
Severity Code Description Project File Line Suppression State
Error 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:\Users\admin\Desktop\admin.Repository\\Properties\GlobalAssemblyInfo.tt"" exited with code 3.
I see that I don't have the path %CommonProgramFiles(x86)%\Microsoft Shared\TextTemplating\15.0\
but rather "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\TextTransform.exe"
modifying my pre-build command to use the path above is not working. what am I missing
Ebenezer
Continue reading...