Search Unity

Visual Studio 2017 Tools for Unity 3.8.0.7 Missing t4 support

Discussion in 'Code Editors & IDEs' started by IES_Travis, Nov 5, 2018.

  1. IES_Travis

    IES_Travis

    Joined:
    Aug 15, 2014
    Posts:
    9
    VSTU 3.8.0.7
    Visual Studio 2017 15.8.9
    Unity 2018.2.14f1

    I'm wondering if anyone has a solution to VSTU not including the .tt files for t4 templates? According to VSTU's changelog, they added support for this back in version 1.8.0.0

    "Project file generator now handles T4 templates."

    And I have several t4 templates in my project. I haven't had to modify them in a long time, but recently when I go to do so, I've noticed VSTU isn't including them, and I have to add them manually and every time Unity regenerates the project files, I lose the templates.

    EDIT:
    I realized I was missing the tt extension from the Edit>Project Settings>Editor Settings C# Project Generation: Additional extensions to include. So I added "tt" to it, but the project files generated don't correctly nest the generated code.
     
    Last edited: Nov 5, 2018