Convert TT files to MsBuild

I need to create a DSL solution using MsBuild and want to convert TT files, I tried the manual at http://msdn.microsoft.com/en-us/library/ee847423(VS.100).aspx but I get the following errors:

Failed to allow include text for file: {0}

and

Downloading the attached file '{0}' returns an empty or empty string.

MSDN has a page that has these problems and permissions: http://msdn.microsoft.com/en-us/library/bb126242(VS.100).aspx , but they don’t actually give me enough information for solve the problem of.

One thing that should be noted on error has the following path:

Error 72 Failed to include text for File: C: \ Source \ XXXXXXXX \ Dsl \ GeneratedCode \ Dsl \ ToolboxHelper.tt. Line = -1, Column = -1 Dsl

but the location of the actual TT file

C: \ Source \ XXXXXXXX \ Dsl \ GeneratedCode \ ToolboxHelper.tt

+3
source share
3 answers

They answered me on MSDN:

Convert TT files to MsBuild

+3
source

This was fixed for me by installing the T4 Toolbox for Visual Studio 2015 extension. Apparently, I only had the T4 editor installed.

+1
source

T4 MSBuild . VS 2010 . VS 2010, .

0
source

Source: https://habr.com/ru/post/1739122/


All Articles