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 7840677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:52:12+00:00 2026-06-02T15:52:12+00:00

I created a custom T4 directive processor in one project, and now I want

  • 0

I created a custom T4 directive processor in one project, and now I want to use the processor in a T4 template in another project, but I’m receiving the following error:

The type ‘MyNamespace.MyCustomDirectiveProcessor‘ of the directive
processor named ‘MyCustomDirectiveProcessor‘ does not derive from
Microsoft.VisualStudio.TextTemplating.DirectiveProcessor. The
transformation will not be run.

My directive processor class is defined like this:

using Microsoft.VisualStudio.TextTemplating;

namespace MyNamespace
{
    public class MyCustomDirectiveProcessor : DirectiveProcessor
    {
        // etc.
    }
}

What do I need to do to make the custom directive work? I’ve followed the guidelines in this documentation to add the directive processor to the registry. I do so in the post build step of the project where I’ve defined my directive processor class, and I’ve made sure that the project is built and the registry keys are added.

  • 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-06-02T15:52:17+00:00Added an answer on June 2, 2026 at 3:52 pm

    After a bit of digging around, I discovered the issue here. Turns out I was using an older version of Microsoft.VisualStudio.TextTemplating.dll. The version I had was 8.1.0.0, as listed in the Add Reference dialog.

    Once I installed the Visual Studio 2008 SDK 1.0, I saw that I had a new version: 9.0.0.0. When I built my project linking to the new version of the .DLL, everything worked swimmingly.

    Hope this helps some poor lost soul still on VS2008!

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

Sidebar

Related Questions

I have created custom posts and I want one page in my site to
I created my custom DLL MongoDbExtensions. Now in a new project I add a
I have created a custom class for my Android project called Sounds I want
friends, i have created custom title bar using following titlebar.xml file with code <?xml
i created a custom menu called top-navigation. Now I'd like to style it with
I created a custom menu called sub-top-nav and now I'd like to override the
I created a custom ComboBox as follows: (note, code is not correct but you
For one reason or another we need to create a custom 32-bit build of
I've created a custom view for a page called views-view--projects-landing-page.tpl.php and I want to
I have created a custom attribute in my asp.net MVC application using the following

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.