Open rsheptolut opened 5 years ago
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
.
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!
Would be interesting to see a port to t5 instead, would make it even more portable
I'm also facing the same issue :D
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):
<TextTransformPath>$(DevEnvDir)\TextTransform.exe</TextTransformPath>
@rsheptolut it works like a charm! Thanks for your help! It saved me the need to install vs 2017 :D
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.
I was working in
VS2019
installed side by side withVS2017
and everything woked fine. Decided today that I won't be needingVS2017
anymore, and sure enoughClarius.TransformOnBuild
stopped working for me. My guess is it doesn't know where to findTextTransform.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.