Reputation: 256901
i have two projects in a project group:
Whenever i open the ProjectGroup.bpg in Delphi, it always starts with the 2nd project as the active one:
And every time i have to flip it to the the "real" project:
How can i make ProjectA the default project that opens with the project group?
#------------------------------------------------------------------------------
VERSION = BWS.01
#------------------------------------------------------------------------------
!ifndef ROOT
ROOT = $(MAKEDIR)\..
!endif
#------------------------------------------------------------------------------
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
DCC = $(ROOT)\bin\dcc32.exe $**
BRCC = $(ROOT)\bin\brcc32.exe $**
#------------------------------------------------------------------------------
PROJECTS = ProjectA.exe ProjectB.exe
#------------------------------------------------------------------------------
default: $(PROJECTS)
#------------------------------------------------------------------------------
ProjectA.exe: ProjectA.dpr
$(DCC)
ProjectB.exe: childfolder\ProjectB.dpr
$(DCC)
See DUnit: How to run unit tests for the practical reason.
Upvotes: 2
Views: 2186
Reputation: 89
Place file ProjectGroup.dsk in project folder with text:
[ActiveProject]
ActiveProject=1
or set check to TRUE in Environment Options -> Preferences -> Autosave Options -> Project Desktop, this will create DSK files for projects and groups automatic!
Upvotes: 0
Reputation: 13454
In Delphi 7 (and I presume later also) you can select the 'active' project in the project group tree by double-clicking it. If you then do 'Save Project Group As' by right clicking the top of the project tree, the active project is saved with the group and will open at that when you next open the project group.
Upvotes: 1
Reputation: 84590
You might have a stuck desktop settings file. Look for a .DSK file associated with your project group, and delete it.
Upvotes: 1
Reputation: 58491
Far from ideal but the only way I know is like
Build Later
.Upvotes: 2