My solution is built with dependency injection. Here’s a simplification of the projects in use:
WebProject
Bootstrapper
Interfaces
Implementations
WebProject has a dependency on Interfaces
Bootstrapper has a dependency on WebProject, Interfaces and Implementations
Because of this Bootstrapper is built last.
Bootstrapper has a Post-build event to xcopy all files over to WebProject
When I run msbuild Octopack creates a package before Bootstrapper has been built resulting in missing files.
I know about and /p:OctoPackEnforceAddingFiles=true but these will not work if the project has not been built yet.
What can I do?