Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > PropertyProcessor problem
 

PropertyProcessor problem

hi guys,

i've got a problem with the new clarius sf using the t4 editor. bascially when i try to preview the templates i get an error:

Code Snippet

<#@ template language="C#" debug="True" #>

<#@ assembly name="System.dll" #>

<#@ property processor="PropertyProcessor" name="FirstName" type="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>

Hello <# FirstName #>

Code Snippet

ErrorGeneratingOutput

Error: 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 directivesToBeProcessed) (3, 3)

i've tried it on both my own sf project and on the TechEd2005HoL proj with the same errors... would seem that there's something wrong with my pc config...

anyone else got this issue???

regards.

mickdelaney  Friday, June 08, 2007 3:02 PM

Hi,

We have confirmed this to be an issue of our installer that shows on some machines. We've fixed it and we have updated the MSI for download:

http://www.softwarefactoriestoolkit.net/Download_Jun07CTP.aspx

thanks for reporting it!

ps. note that we are now providing a .zip file including the DSL Tools redist too for people not having the VS SDK installed as this redist seems to not be available separately.

-Victor.

vga  Tuesday, June 12, 2007 6:09 AM

Mick,

When using the <# #> code block you need to provide either valid C# or VB code, so you're getting a compilation error on the generated class.

You should use the <# =expression #> code block instead which just outputs the specified expression as part of the output of the generation.

HTH,

-Victor.

vga  Tuesday, June 12, 2007 2:24 PM
Hi,

We're investigating this and we'll get back to you ASAP!

thanks,
-Victor.
vga  Saturday, June 09, 2007 6:16 PM

Hi,

We have confirmed this to be an issue of our installer that shows on some machines. We've fixed it and we have updated the MSI for download:

http://www.softwarefactoriestoolkit.net/Download_Jun07CTP.aspx

thanks for reporting it!

ps. note that we are now providing a .zip file including the DSL Tools redist too for people not having the VS SDK installed as this redist seems to not be available separately.

-Victor.

vga  Tuesday, June 12, 2007 6:09 AM

with the update the same code now gives the error below.

Code Snippet

<#@ template language="C#" debug="True" #>

<#@ assembly name="System.dll" #>

<#@ property processor="PropertyProcessor" name="FirstName" type="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>

Hello <# FirstName #>

now the error is.

Code Snippet

ErrorGeneratingOutput

Error: Compiling transformation: ; expected (4, 10)

mickdelaney  Tuesday, June 12, 2007 9:28 AM
Hi Mick,
try using <#= FirstName #> than <# FirstName #>

that's the compilation error.


Jose Escrich  Tuesday, June 12, 2007 2:16 PM

Mick,

When using the <# #> code block you need to provide either valid C# or VB code, so you're getting a compilation error on the generated class.

You should use the <# =expression #> code block instead which just outputs the specified expression as part of the output of the generation.

HTH,

-Victor.

vga  Tuesday, June 12, 2007 2:24 PM

Hi,

Thanks guys for clearing that up..

All fine on the t4 front now.

Regards,

mickdelaney  Tuesday, June 12, 2007 2:36 PM

You can use google to search for other answers

Custom Search

More Threads

• GAX/GAT 2007 July installation problem
• Issue with DSL Tool
• GAT installation cannot find the GAX
• Welcome to the Guidance Automation Toolkit Forum!
• DAL
• How does the .vstemplate run?
• Linking the Smart Client Software Factory with GuidanceAutomationExtensions
• Boolean Condition Doesn´t Work
• How do I re-enable available guidance in a Guidance Automation solution?
• VSTS - Web Test - FIND TEXT command