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 / General / February 2004

Tip: Looking for answers? Try searching our database.

Command Line Building and Source Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Kobos - 06 Jan 2004 14:46 GMT
I have a Visual Studio .Net 2003 solution that is connected to a PVCS 7.5
source control project.  What I would like to do from the command line is
start up the solution, get all the files that are associated with the
solution and then build the solution.  This would be part of a nightly build
and would therefore need to have no input from a user.  Does anyone know of
a way to do this?

Thanks
Tom
Thomas V. Nielsen - 13 Jan 2004 22:42 GMT
>  Does anyone know of a way to do this?

Look into yout PVS documentation for command line switches for checking out  
and labeling the files.

To automate VS.NET use the command line version devenv.com try a /? for the
switches.

You could use som wsh to script a nigtly automated build process. And if
you are using some test suites, you could get quite a bit on the way.

I did managed to put someting like this together with VS.NET 2K2, Source
Safe and NUnit, some time ago.

/Thomas
Bill - 27 Feb 2004 23:36 GMT
I don't have time to work out the code right now, but there's a /command
switch you can use to fire up devenv and run a command.  You could write a
macro or addin command that listed all the files in the solution or a
project and then did a DTE.Quit to shutdown.  There's 20-30 automation
samples on MSDN,
VS 2002 Automation samples

http://www.microsoft.com/downloads/details.aspx?FamilyID=ee1c9710-6df7-4f3f-a5ae
-425a478ddeeb&DisplayLang=en


VS 2003 Automation Samples

http://www.microsoft.com/downloads/details.aspx?familyid=3ff9c915-30e5-430e-95b3
-621dccd25150&displaylang=en


A couple of the samples show how to walk a solution/project generically to
list all the files.  Actually, if you hit alt-F11, go to the macros IDE, and
look at Utilities.ListProj, you'll see the same code.

Bill

> I have a Visual Studio .Net 2003 solution that is connected to a PVCS 7.5
> source control project.  What I would like to do from the command line is
[quoted text clipped - 5 lines]
> Thanks
> Tom

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.