Hi all,
I've made a add-in project to generate a new web project.I have a question that after executing onfinish method in default.js should then execute Exec function in connect.cs, but in fact Exec function didn't execute. How to solve this problem
Best regards

a problem with Exec function
Jos Warmer
I was a little confused in your description - an Add-in is a COM object loaded and run by Visual Studio. A Wizard is a different COM object, they are not the same kind of component.
Web Projects do not support .vsz/.vsdir style wizards in VS 2005. VSTemplate style wizards are supported. You can create a web site the way you like, then export the template from the File | Export Template menu. Once you have exported the template, you can then modify it by unzipping the file.
Craig
zuz29
In vs2005, I found using .vsz/.vsdir style wizards to implement web project's function is also ok, Why
apart from generating project, I still need to add a template file each time, but using VSTemplate style can't achieve this aim.
George Jiang
Kimme
The Exec function is invoked only when you invoke the command that is added by a call to AddNamedCommand[2]. If you have changed the name of the command (by changing the arguments passed to AddNamedCommand[2]) then you also need to change the command name as passed to the Exec/QueryStatus functions.
Craig
cindyh
This is a program to create new web project. In vs2003, the solution is like this: use xxx.vsz and xxx.vsdir file to display this project's name and icon in New Web Site dialog. Click it to start the wizard of this project, and then go to default.htm page, on this page, click the finish button, run the OnFinish function in common.js and default.js file, then will execute the Exec function in connect.cs file.
Add-ins could not have custom wizard in vs2005
GrantV
I have set the name of the command the same as the argument commandName of the Exec/QueryStatus functions ,then click Tools ->command (which i added into ), the Exec function is invoked correctly.
In VS 2003, when use wizard to generate a new project , executing Exec function in connect.cs after execting onfinish method in default.js can be executed successfully, but in VS 2005 ,it cannot , i want to know the reasons.
thanks
brucehatton
I am a little confused about what you wrote. You said that you created an Add-in and the Exec method was called correctly using VS 2003. But you also talk about default.js. Is this really an Add-in, or is it a Wizard
Craig