I have a forms application in .net 2003 which calls the LaunchWizard method (DTE Object), after setting the required parameters such as the location of the .vsz file. For VS2003 the .vsz files were located in the "C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjects" folder. However the same piece of code does not work in VS 2005 and when i checked the CSharpProjects folder i dont see the .vsz files . Does anyone know how the wizard works in VS 2005.
this is the code i have developed
.
object [] param= new object[7];
param[0]="{0F90E1D0-4999-11D1-B6D1-00A0C90F2744}";
param[1]=name;
param[2]=path;
param[3]="";
param[4]=false;
param[5]=name;
param
EnvDTE.DTE dte;
dte = (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.7.1");
string s;
string paramfile;
s=dte.Solution.get_TemplatePath(VSLangProj.PrjKind.prjKindVBProject);
paramfile=s+"ConsoleApplication.vsz";
wizardResult res;
try
{
res=dte.LaunchWizard(paramfile,ref param);
MessageBox.Show(res.ToString().Replace("wizardResult","Project Creation:"));
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}

Create new project from code (New Project Wizard)
Tamas Pocker
i basically need to create projects by calling the wizard from code. the above piece of code works for VS2003 but does not for VS2005. So can someone also give info on how the "New Project Wizard " works in VS 2005.
Dave McCall