Problem at creating a vs.net wizard
-
Hi, all I try to create a wizard for vs.net when new project or file, when I test my wizard, vs.net always pops up a dialog "Could not run the xxx wizard". firt part is my dll source:
using System; using System.Windows.Forms; using EnvDTE; namespace MyVSWizard { /// /// Summary description for Wizard. /// public class Wizard : Object, IDTWizard { public Wizard() { // // TODO: Add constructor logic here // } public void Execute( object Application, int hwndOwner, ref object[] ContextParams, ref object[] CustomParams, ref wizardResult retval ) { MessageBox.Show("Hello world"); } } }
then I use "regasm /codebase" to register the dll as a com and get the clsid ={34470340-B2D6-39A4-AFDA-A53A13D04DF7}. then my .vsz fileVSWizard 7.0 Wizard={34470340-B2D6-39A4-AFDA-A53A13D04DF7}
then my clause in .vsdir fileMyWizard.vsz|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|270|My First Wizard|{34470340-B2D6-39A4-AFDA-A53A13D04DF7}|0|0|MyClass.cs
Thank you for your help!:rose: I'm amumu, and you?