Thanks (again) for the prompt reply.
In that case, if you will recompile your project in D2006 after work with D7 you will need to change project sources - replace used library xxxx_D7 to xxxx_D2006.
First, I have separate projects for separate versions of Delphi anyway, because there are things that change source-level. So I don't need to modify anything at the project level anyway.
Second, what you wrote above isn't strictly True. Have a look at how the Lib Suffix works. I only have "PivotCube" in my requires clauses, and it resolves to PivotCube.dcp at compile time and to PivotCube_D7.bpl or PivotCube_D2006.bpl at run time.
I am somewhat amazed the above comes as news, as many many popular Delphi component packages (as well as the VCL itself) work this way.
Much easier keep different version of packages in Delphi spearated directories and set path to same package sources in project settings.
Separate versions of packages - yes. But setting paths at the project level is not practical, because
a) one can have many projects and it would be a maintenance pain;
b) one might want to avoid recompiling PivotCube sources every time a project is compiled;
c) doesn't work when compiling with run-time packages enabled. The bpl must be in the system PATH, and two different bpls with the same name are a nightmare to have in the PATH.
Thanks
[/quote]