Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

Extending VS for deployment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xzfjyp - 23 Dec 2005 09:28 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.