I'm looking at also creating a wizard. In my vs template I have a codefile.cs or vb. I would like to rename some items in this file before it is added to the project. I noticed that the ProjectItem's document object is null. How can I modify the source code files Do I have to load the file I have $codebesideclassname$ as my class name in the codefile.cs. I do I change it to something else
The IWizard interface is not currently publicly documented anywhere, but will be by the time Visual Studio 2005 is released. In the meantime, that Starter Kit should help.
Thanks, Brett Samblanet Visual Studio User Education
replacementsDictionary.Add("$consolemessage$", consoleMessage);< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Here, the consoleMessage variable contains the value we receive through the Form from the user. This basically tells the template engine that wherever you see $consolemessage$in any of the files in the template replace it with the string in consoleMessage varibale before creating a project. Thus you can define any number of custom parameters and replace them with values provided by user input.
The Documentation.htm in IWizardStarterKit1 sample answered my question. The wizard stuff is pretty nice.
IWizard
Abhishek Arya
I'm looking at also creating a wizard. In my vs template I have a codefile.cs or vb. I would like to rename some items in this file before it is added to the project. I noticed that the ProjectItem's document object is null. How can I modify the source code files Do I have to load the file I have $codebesideclassname$ as my class name in the codefile.cs. I do I change it to something else
Chris
Samir K
The IWizard interface is not currently publicly documented anywhere, but will be by the time Visual Studio 2005 is released. In the meantime, that Starter Kit should help.
Thanks,
Brett Samblanet
Visual Studio User Education
Anjan Das MSFT
Here, the consoleMessage variable contains the value we receive through the Form from the user. This basically tells the template engine that wherever you see $consolemessage$ in any of the files in the template replace it with the string in consoleMessage varibale before creating a project. Thus you can define any number of custom parameters and replace them with values provided by user input.
The Documentation.htm in IWizardStarterKit1 sample answered my question. The wizard stuff is pretty nice.
Chris