Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:50:33+00:00 2026-05-22T21:50:33+00:00

I’m attempting to run TextTransform.exe to generate code using a T4 template file. The

  • 0

I’m attempting to run TextTransform.exe to generate code using a T4 template file.
The template file is dependent on the T4Toolbox (specifically, it contains classes implementing the T4Toolbox.Template class).

As such, it includes the file t4toolbox.tt, which contains the following directives:

<#@ dte processor="T4Toolbox.DteProcessor" #>

<#@ TransformationContext processor="T4Toolbox.TransformationContextProcessor" #>

During execution, I get the following error for both the referenced processors:

C:\Program Files\T4 Toolbox\t4toolbox.tt(1,4) : error : A processor named 'T4Toolbox.DteProcessor' could not be found for the directive named 'dte'. The transfo
rmation will not be run.  The following Exception was thrown:
System.IO.FileNotFoundException: Failed to load directive processor T4Toolbox.DteProcessor.
   at Microsoft.VisualStudio.TextTemplating.CommandLine.CommandLineHost.ResolveDirectiveProcessor(String processorName)
   at Microsoft.VisualStudio.TextTemplating.Engine.ProcessCustomDirectives(ITextTemplatingEngineHost host, TemplateProcessingSession session, List`1 directivesT
oBeProcessed)

I’m running the exe with the following parameters:

TextTransform.exe
-I "C:\Program Files\T4 Toolbox" 
-P "[Framework3.5],[VS2008 PublicAssemblies]" 
-dp "XsdProcessor!T4Toolbox.XsdProcessor!T4Toolbox.dll" 
-r "T4Toolbox.dll" mytemplate.tt

I’ve tried to include addition directive processors with multiple -dp parameters, and with a comma separated list (I can see both the DteProcessor and TransformationContextProcessor are implemented in T4Toolbox, so presumably the syntax is similar to the specification of the XsdProcessor?)

Any ideas on how to get rid of these errors? The template generation runs perfectly inside visual studio.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:50:34+00:00Added an answer on May 22, 2026 at 9:50 pm

    I managed to resolve the noted errors with some adjustments to the command line parameters.
    TextTransform.exe seems to need multiple paths or directives specified individually. I also had the processing assembly incorrect (-r)

    For example:

    TextTransform.exe
    -I "C:\Program Files\T4 Toolbox"
    -P "[path1]"
    -P "[path2]"
    -dp "T4Toolbox.DteProcessor!T4Toolbox.DteProcessor!T4Toolbox.dll"
    -dp "T4Toolbox.TransformationContextProcessor!T4Toolbox.TransformationContextProcessor!T4Toolbox.dll"
    -r Microsoft.VisualStudio.TextTemplating.VSHost.dll" mytemplate.tt

    However, unfortunately, resolving these couple of issues led to a dead end.
    Use of the T4Toolbox is not currently supported.

    http://t4toolbox.codeplex.com/discussions/52069

    Instead, I’m looking at calling MSBuild.
    The following has been a great reference:
    http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#ConfiguringTransformationEnvironment

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
I need to clean up various Word 'smart' characters in user input, including but
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.