Pergunta

I would like to know if there is anyway to get the ability to have or at least mimic Pre and Post build events at the Solution level not just at the project level within Visual Studio 2008?

Therefor if possible I would like this functionality to be similar to how they work at the project level, except I only want them to run before building any projects and after building any projects. For example to be a command-line style with Macro's if possible, however could be happy with being able to specify one or more CMD files to be run in order.

At worse case, can I create MSBuild .proj file and some how get it to be recognized by the sln file to run before anything and another after everything type of deal?

Any other suggestions to get similar behavior are welcomed as long as they are within the core VS2008 and MSBuild functionality. I cannot require the use of any add-ins or extensions to accomplish this.

Foi útil?

Solução

For the post-build, can you just do it in your lib/app project's post-build?

For the pre-build, you should be able to create a project and then set your Project dependencies such that everything depends on it. You can do the reverse for post-build if you don't want to use your lib/app's project's post-build.

EDIT: Of course, as pointed out, this won't actually work with the post-build. Durr.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top