Hello, I have a little problem. I configured a project to call 3 MSBuild tasks. After looking at the build Reports I see something strange and try to verify it. Task1: Deletes all Temporary Files. Task2: Checks out the AssemblyInfo-File, change the Assembly Version and checks in the new file. Task3: Builds the Solution
I modified Task3 to generate a compile error. The problem is that the Build succeeded parts of Task 1 and 2 is overwritten with the Build Failed part of task 3. This looks to me like a bug, or am I missing something? Is there a way to exclude msbuild tasks from the MSBuildReport site, so I could hide all msbuild tasks expect for task3 because it's the only one that matters? To make thinks more clearly here is the MSBuild Report after a Forced build. (There are Tasks 4, 5 and 6 but because of the error in Task 3 they never get executed just like as expected) Build started 07/15/2009 16:34:32 Build succeeded BusinessResult.cs (8,12): error CS1002: ; expected 1 Error(s) 0 Warning(s) Time elapsed 00:00:00 Build started 07/15/2009 16:34:32 Project "C:\Program Files\CruiseControl.NET\server\customBuildHelper\CreateAssemblyVersion.xml" (default targets): Target "Version": cleartool.exe setactivity -nc -view "myview" cqTicket1 ...->some more cleartool output... Build succeeded BusinessResult.cs (8,12): error CS1002: ; expected 1 Error(s) 0 Warning(s) Time elapsed 00:00:04 Build started 07/15/2009 16:34:38 Project "D:\CC Builds\MyProject\WorkingDirectory\Inhouse.sln" (ReBuild target(s)): Target "ValidateSolutionConfiguration": Building solution configuration "Debug|Any CPU". Target "Rebuild": Project "D:\CC Builds\MyProject\WorkingDirectory\ Common\Common.csproj" (Rebuild target(s)): ...->some compiler messages Target "CoreCompile": C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /platform:AnyCPU /errorreport:prompt /warn:4 /doc:bin\Debug\Common.xml /define:CODE_ANALYSIS;DEBUG;TRACE /reference:..\..\..\3rdParty\log4net\log4net.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Transactions.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /debug+ /debug:full /filealign:512 /keyfile:mykey.snk /optimize- /out:obj\Debug\Common.dll /resource:obj\Debug\Common.Properties.Resources.resources /target:library /warnaserror+ ApplicationUser.cs ApplicationUserScope.cs ApplicationUserScopeOption.cs BusinessController.cs BusinessRequest.cs BusinessResult.cs ContextData.cs OutOfSqlTConnectionScopeException.cs Properties\AssemblyInfo.cs ..\ProductAssemblyInfo.cs \\wkoedev02\CommonFiles\CompanyAssemblyInfo.cs Properties\Resources.Designer.cs SqlTConnectionScope.cs SqlTConnection.cs BusinessResult.cs (8,12): error CS1002: ; expected Done building target "CoreCompile" -- FAILED. Done building project "Common.csproj" -- FAILED. Done building project "Inhouse.sln" -- FAILED. Build FAILED BusinessResult.cs (8,12): error CS1002: ; expected 1 Error(s) 0 Warning(s) Time elapsed 00:00:01 As you can see only the last MSBuild Task executed has an error but the error is shown on all MSBuild tasks. Michael
<<inline: image001.gif>>
