go to the properties for your sub-project. Make its build dependency based on the content project... that will ensure the content project gets compiled first. Then from the Compile tab of the project properties, lower right is a Build Events button... click it... in the Pre-build event, you can enter a command line that will run your content builder project... once it's done running, the project will then compile.
I think that should do it.

-tg