Hi,
I am taking my first steps into the 'VS 2005 automation world' in order to
programmatically create VS solution with a predefined layout (project
contents).
It is going rather well when using the VS project template
(Solution2.AddFromTemplate( )) approach in order to create the different C#
and VB.NET project in its different types (class libs, web apps, ...).
Now I wanted to take the next step i.e. adding some deployment-related
projects to the solution but I cannot find the/any template for this.
Is there one for this purpose ? If so, where can I find them ?
If not, how can I get a deployment project (setup & websetup) in a
solution (using Automation) ?
Thanks in advance.

Signature
Frank
"Gary Chang[MSFT]" - 24 Dec 2005 04:56 GMT
Hi Frank,
>Is there one for this purpose ? If so, where can I find them ?
>If not, how can I get a deployment project (setup & websetup)
>in a solution (using Automation) ?
Since the setup project is not a .NET language project, the VS2005 doesn't
provide a corresponding vstemplate file.
I suggest you can use an existing empty setup/websetup project for
template, and use the Solution2.AddFromFile method to add it in the target
solution:
soln.AddFromFile("E:\Gary\My Documents\Visual Studio
2005\Projects\SetupDemo\SetupDemo.vdproj", False)
Please refer to the following MSDN doc for the details:
Solution2.AddFromFile Method
http://msdn2.microsoft.com/en-us/library/envdte80.solution2.addfromfile.aspx
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.