I want to do Clean and Build in devenv. I just noticed that buildtype flag can have only one item (Clean;Build not allowed). Do you have any idea how to specify multiple BuildTypes?
<tasks>
<devenv>
<solutionfile>C:\Source\Developer.sln</solutionfile>
<configuration>Release</configuration>
<buildtype>Build</buildtype> // How to do Clean and build here???
<executable>C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com</executable>
<buildTimeoutSeconds>900</buildTimeoutSeconds>
</devenv>
</tasks>
You need two tasks. Each <devenv>
block corresponds to one devenv.com
invocation. The options to devenv.com
only allow you to /Clean
or /Rebuild
instead of building. If you want to clean first and then build normally you will need to invoke devenv.com
twice and therefore you need two tasks.