Scenario
I want to have a solution which contains:
- A command-line application (Utility.exe)
- A class library (Library.dll)
- A lot of other stuff which needs to be built
And I would like to build the entire solution using msbuild. Additionally, I need to execute the Utility in a pre-build event of the class library.
Problem
Setting Utility.exe as a project dependency of Library.dll is no good since the pre-build is invoked before dependent projects are built.
I am currently thinking of invoking msbuild for just Utility.exe before building the entire solution. Is there a better / cleaner solution?
Edit
Related: MSBuild build order