Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Unfoldtemplate getting information out of the RunStarted methode "replacementsDictionary"
 

Unfoldtemplate getting information out of the RunStarted methode "replacementsDictionary"

Is there a way to get the values out of the "replacementsDictionary" property?
This property is used in the "RunStarted" methode in theUnfoldtemplate class.

Thanks,

Clemens.

Clemens Reijnen  Monday, September 03, 2007 9:16 AM

Hi Clemens,

You can't access that property as it's marked as 'internal'. But there are a few things you can do to get at the contents of the replacement dictionary although they are not trivial.

I don't know about what you're trying to accomplish but I did code a "dynamic template" feature for Clarius SFT to support conditional unfolding of project templates. In order to achieve I had to have my own IWizard extension (you can check at the docs for this in MSDN to get to its details). This is what GAX does (its the UnfoldTemplate class you have mentioned) in order to support expansion of template variables from GAX recipe arguments. In my case, as I wanted to still have support for this, I ended up extending GAX's UnfoldTemplate class instead of creating my own from scratch.

This way you will be able to get a chance to peek at what's coming in the replacement dictionary.

Let me know if this helps,

thanks,

-Victor.

vga  Friday, September 07, 2007 5:45 AM

Hi Clemens,

You can't access that property as it's marked as 'internal'. But there are a few things you can do to get at the contents of the replacement dictionary although they are not trivial.

I don't know about what you're trying to accomplish but I did code a "dynamic template" feature for Clarius SFT to support conditional unfolding of project templates. In order to achieve I had to have my own IWizard extension (you can check at the docs for this in MSDN to get to its details). This is what GAX does (its the UnfoldTemplate class you have mentioned) in order to support expansion of template variables from GAX recipe arguments. In my case, as I wanted to still have support for this, I ended up extending GAX's UnfoldTemplate class instead of creating my own from scratch.

This way you will be able to get a chance to peek at what's coming in the replacement dictionary.

Let me know if this helps,

thanks,

-Victor.

vga  Friday, September 07, 2007 5:45 AM

Victor,

Thanks! Finally I solved it just by using a simple ValueProvider.

Clemens Reijnen  Wednesday, September 12, 2007 3:00 PM
No problem, glad you could make it work!
vga  Thursday, September 13, 2007 7:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Error installing GAT on VS 2005 (German)
• GAT: unexpected error loading template...
• GAX/GAT Custom Menu won't update after second Build/Registration
• What is the benefit of using GAT versus implementing patterns
• Get Full Path for Project Item...
• Adding Solution items
• When will the mobile software factory installer, June 2006 GAX and GAT dependency, be resolved
• Newb Question: Where to get started on item template and documentation
• GAT Roadmap
• Installing GAX breaks Orcas C# new project creation