I am working on a project now which has 155 projects within its solution in Visual Studio 2008. When one of these projects fail to build I have to wait a long time before the build finishes unless I press CTRL + Break.
But now I have found a really nice solution to this here. The solution is to add a macro that handles the OnBuildProjConfigDone event and execute the DTE command “Build.Cancel” when a project has failed to build.
I got the question on how I put the username and password from the service account dialog (see part 1) back into the ServiceInstall element. The way I did it was to create two properties to hold default values (at the moment I do not remember if it was necessary).
1: <Property Id="ACCOUNT" Value="<DOMAIN\username>"/>
2: <Property Id="PASSWORD" Value="<password>"/>
And then I set up the ServiceInstall element to use these properties.
1: <ServiceInstall Id="MyServiceInstall" Name="MyService" Type="ownProcess" Account="[ACCOUNT]" Password="[PASSWORD]" Start="auto" ErrorControl="ignore" DisplayName="MyService" />