I Noticed that this setting can be changed with appcmd on 2008 R2:
%windir%\system32\inetsrv\appcmd.exe set apppool "theAppPool" /startMode:AlwaysRunning
So for now I will do this in an <Exec ...
Anyone know how to implement more neatly into: MSBuild.ExtensionPack.Web.Iis7AppPool ?
I’m happy to do the work if anyone can provide a quick pointer on what would constitute an acceptable technique? (calling appcmd from a task seems like a bit of a hack)