I've finally understand the source of the problem.
When ones creates temporary project, it does not have access to macros defined in the original project, it has access to global macros only.
And then, 'Set macro' step fails because my macros loaded from external file requires some macros from project file.
It is strange that I can not force temporary project not to fail by setting objStep.ContinueOnFailure = True and objStep.BuildFailureStepsOnFailure = False in the Function CreateStep - internal build fails anyway.
Anyway, now I have all information required to make this work, the only problem is to decide - are all those new complications and requirements worth it?
I was simply trying to split global macros file into two parts...
|