locked
GAX & Visual Studio 2010 - T4 question RRS feed

  • Question

  • Hello there,

     

    I installed GAX 2010 from VS 2010 Extensions Manager, but creating a new t4 template and setting property processor to "PropertyProcessor" throws an error:

    Error 2 A processor named 'PropertyProcessor' could not be found for the directive named 'property'. The transformation will not be run.  The following Exception was thrown:

    System.IO.FileNotFoundException: Failed to resolve type for directive processor PropertyProcessor.

       at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveDirectiveProcessor(String processorName)

       at Microsoft.VisualStudio.TextTemplating.Engine.ProcessCustomDirectives(ITextTemplatingEngineHost host, TemplateProcessingSession session, List`1 ....


    Can someone explain please what is going on? What assembly/assemblies must I reference in order to use PropertyProcessor in VS2010?

    Thanks.

    Sunday, October 10, 2010 1:22 PM

All replies

  • Hi Stephanne,

    You are probably using the VS (or DSL) host by running the custom tool, right? You should be running the transformation by using the actions provided by GAX which use the GAX host.

    Thanks,

    Adrian


    Adrian Alonso - http://adrianalonso.blogspot.com/
    Tuesday, October 19, 2010 2:03 PM