Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
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

Open

Description

@rsheptolut

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.

Activity

  1. rsheptolut commented on May 15, 2019

    @rsheptolut
    Author

    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.

  2. jon49 commented on Jun 6, 2019

    @jon49

    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!

    $@"{_programFiles}\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\TextTransform.exe",

  3. thomassuckow commented on Nov 14, 2019

    @thomassuckow

    Would be interesting to see a port to t5 instead, would make it even more portable

  4. jgomesmv commented on Jan 2, 2020

    @jgomesmv

    I'm also facing the same issue :D

  5. rsheptolut commented on Jan 2, 2020

    @rsheptolut
    Author

    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>
    
  6. jgomesmv commented on Jan 3, 2020

    @jgomesmv

    @rsheptolut it works like a charm! Thanks for your help! It saved me the need to install vs 2017 :D

  7. johnverbiest commented on Jan 25, 2022

    @johnverbiest

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions