VS 2010 - How to Build all Projects in a Directory?

Tom Sage
Tom Sage used Ask the Experts™
on
I have about 50 projects.  Each project has its own directory, but all of the projects are in a master directory named "Dev".

I am moving the application to another server, so I will need to change the connection strings and other settings, and then Build each project to create a new xxx.exe for each one.

How can I do a batch Build for all of these projects?

Thanks !
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
Are the project a part of one solution, or is each its own solution?

Author

Commented:
Hi kaufmed,

There is one Solution that has 5 projects.  All others are single project Solutions.

Thanks
Top Expert 2015
Commented:
Create a solution that includes all the projects and do a Rebuild All on the solution.

You could also prepare a batch file or script that calls vbc.exe (the Visual Basic compiler). The use of vbc is described in the Visual Studio documentation.

Author

Commented:
Thank you for your help

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial