IWizard


Is there a template that generates a Wizard and has the boiler-plate code for IWizard Where is IWizard documented

Thnx in advance.


Answer this question

IWizard

  • Abhishek Arya

    Brett

       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

    There's a great IWizard Starter Kit available at http://www.dotnetjunkies.com/ShowContent.aspx type=vscontent&id=5A9AC916-B95F-4C58-9505-9937546FFCBA that should help get you started.

    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

    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.

    Chris



  • IWizard