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