|
-
December 1st, 2004, 11:57 AM
#1
Build order in multi-project Workspace
I am trying to create a Master Build comprising many separate projects.
I know I can use a batch Makefile, but I thought it would be easier to create a single "MasterBuild" project and add all the projects (via "Insert project into workspace").
However, now that I have done this, I cannot figure out a way to control the order of the build. I want to build the utility projects (which every other project relies on) first.
I know I can set up Project Dependencies, but when I do this the utility projects are rebuilt for every new project build.
Is it possible to specify the order of builds, or do I just need to use a BATCH file?
P.S. I have searched CodeGuru for any similar posts, but the couple I found did not give ant satisfactory answer (other than that .NET allows build order to be specified). Is it perhaps not possible in v6.0?
-
December 1st, 2004, 01:08 PM
#2
Re: Build order in multi-project Workspace
One way is to use a batch file..
You can use msdev from command line..
here's a sample batch file..
----------------------------------------------------------------------------------------------------
PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
msdev .\folder\project1.dsp /MAKE "Project1 - Win32 Debug" /REBUILD
msdev .\folder\project2.dsp /MAKE "Project2 - Win32 Debug" /REBUILD
-----------------------------------------------------------------------------------------------------
Note here, .dsw is not use.. instead .dsp is used.. so, you needn't necessarily need to have all dsps in one dsw either
-
December 1st, 2004, 01:42 PM
#3
Re: Build order in multi-project Workspace
If all the projects are in the workspace, you set the correct dependencies for each on the others. Make the master one the active project and when you rebuild it should build the project which everything is most dependent on first.
Each project should only be built once unless you somehow have circular dependencies (which should not be possible to setup)
Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
Please remember to rate useful answers. It lets us know when a question has been answered.
-
December 2nd, 2004, 04:48 AM
#4
Re: Build order in multi-project Workspace
Roger,
Thanks very much, that works fine.
I thought I had tried that before, but obviously I made a mistake.....Martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|