all groups > visual studio .net general > april 2004 >
You're in the

visual studio .net general

group:

Command-Line Building


Command-Line Building georgepwilliamson NO[at]SPAM hotmail.com
4/29/2004 8:22:03 AM
visual studio .net general: We have a really large solution that we're working on an automated
build process for. We use the command-line functionality of
devenv.exe to build individual projects.

My question is this, is there a command-line switch that I'm not aware
of that will allow me to build one particular project without building
its dependancies first? That functionality exists in the GUI by
right-clicking on a project and choosing the "Project Only" submenu.

We manage our dependancies externally, and it really adds a lot of
time to our build for each of our projects to go through and build
each dependancy (even though it's a no-op).

Re: Command-Line Building mbosticky NO[at]SPAM aimltd.co.uk
5/3/2004 3:50:12 AM
[quoted text, click to view]

My 'guess' is no. I have looked into this before my self. Our solution
was to write an add-in which inteligently build the projects + we have
a normal application that uses the same algorithms. However, this was
definitely a tough undertaking as there are many technical problems
that we had to solve first.

Consider use of make files.

Re: Command-Line Building georgepwilliamson NO[at]SPAM hotmail.com
5/3/2004 8:54:09 AM
Thanks, I actually wrote an app that parses the SLN file and project
files to intellegently build the projects in the right order. One
solution I had was for my build process to remove the SLN file just
before building. However, our developers were lazy and didn't update
link libraries because the dependancy stuff does that for you. The
result is a lot of linker errors. I could go through our entire
solution and fix all of the link libraries, but that's a bit of work.
I could also expand my parsing to automatically add link libraries to
a project from any project it depends on.

It would be a lot easier if studio just had this flag, though. :-)

[quoted text, click to view]
AddThis Social Bookmark Button