You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
Add support for finding TextTransform in Visual Studio 2019 #61
I was working in VS2019 installed side by side with VS2017 and everything woked fine. Decided today that I won't be needing VS2017 anymore, and sure enough Clarius.TransformOnBuild stopped working for me. My guess is it doesn't know where to find TextTransform.exe. The error I'm getting is pretty cryptic, though: CS1056 Compiling transformation: Unexpected character '$'. So can be useful to also improve error messaging.
I haven't made any changes to the T4 file I'm transforming and the file transforms fine by the means of the VS2019 itself (when saving the T4 file for example). I did update Visual Studio 2019 to 16.0.4 though.
Quick fix for those with only VS2019 on their PC: just copy C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE to C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE.
Reacted by José Gomes, Mason Wells and Nicolas 'Nerpson' Jullien
Looks like this issue is easily fixed with about 4 lines of code. I'm just evaluating this lib so I won't create a pull request until I know I really want to use it!
In case you are still waiting for this (or arriving here by accident). I created a fork of this project and have build and deployed the correct nuget package that includes the change for VS2019. You can find the nuget package on https://www.nuget.org/packages/JohnVerbiest.TransformOnBuild/.
I will be accepting pull requests in hope to put some new life into this.
Reacted by Nicolas 'Nerpson' Jullien
Reacted by Jon Nyman, Ruslan Sheptolut and Nicolas 'Nerpson' Jullien
Activity
rsheptolut commentedon May 15, 2019
Quick fix for those with only VS2019 on their PC: just copy
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDEtoC:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE.jon49 commentedon Jun 6, 2019
Looks like this issue is easily fixed with about 4 lines of code. I'm just evaluating this lib so I won't create a pull request until I know I really want to use it!
TransformOnBuild/Clarius.TransformOnBuild.MSBuild.Task/Clarius.TransformOnBuild.MSBuild.Task/TransformOnBuildTask.cs
Line 150 in 4948e36
thomassuckow commentedon Nov 14, 2019
Would be interesting to see a port to t5 instead, would make it even more portable
jgomesmv commentedon Jan 2, 2020
I'm also facing the same issue :D
rsheptolut commentedon Jan 2, 2020
A good workaround is to add this to your csproj file in one of the existing property groups there (or add a new one, without conditions):
jgomesmv commentedon Jan 3, 2020
@rsheptolut it works like a charm! Thanks for your help! It saved me the need to install vs 2017 :D
johnverbiest commentedon Jan 25, 2022
Hi,
In case you are still waiting for this (or arriving here by accident). I created a fork of this project and have build and deployed the correct nuget package that includes the change for VS2019. You can find the nuget package on https://www.nuget.org/packages/JohnVerbiest.TransformOnBuild/.
I will be accepting pull requests in hope to put some new life into this.