Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Custom Wizards and custom arguments
 

Custom Wizards and custom arguments

I am working on a code generation recipe that requires some significant data collection. As such I've created a custom wizard page. The custom wizard populates an object hierarchy that I'd like to make available to my T4 template. I am making the following calls (as shown in the Custom Wizard Page instructions) when my data has been captured into my custom business object:

IDictionaryService dictionaryService = GetService(typeof(IDictionaryService)) as IDictionaryService;
dictionaryService.SetValue("DAFMapper", dafMapper);

DAFMapper is my custom business object. Though the SetValue call appears to be capable of taking an object in it's value param, it dies wanting to convert my object to a string. I'm wondering if anyone else has attempted to push object data (rather than strings) into the stack for use by templates.

--Chris
Chris Mazur  Tuesday, March 28, 2006 5:20 PM
Turns out I answered my own question and figured I'd post in case someone else runs into this. I had not specified a Type attribute for my DAFMapper argument in my Guidance.xml file. It appears that the default type for an argument is string if none is explicit specified
Chris Mazur  Wednesday, March 29, 2006 2:10 PM
Turns out I answered my own question and figured I'd post in case someone else runs into this. I had not specified a Type attribute for my DAFMapper argument in my Guidance.xml file. It appears that the default type for an argument is string if none is explicit specified
Chris Mazur  Wednesday, March 29, 2006 2:10 PM
That's right, the default type is string.
kzu  Wednesday, March 29, 2006 5:41 PM

You can use google to search for other answers

Custom Search

More Threads

• have GetProjectAction vstemplate to execute a recipe
• Multi-project Visualstudio Template
• no help for asmx web service factory
• How to make item templates appear in "sub categories" in VS 2008
• Unexpected Menu Behavior
• Add files in multiple projects
• Unable to uninstall several guidance packages
• SOA using WSSF and WCSF
• Error creating ServiceContract, also not displaying my current project's DataContracts / FaultContracts???
• Impossible to uninstall GAT