Hello.
First off, sorry if I posted this to the wrong forum.
I've set up a environment with CruiseControl, Ant and MSBuild. The problem I'm having has got do with the results that MsBuild or Devenv produce.
Here's my build flow:
- CruiseControl project calls my Ant target.
- The Ant target calls MsBuild.exe (or Devenv.com) in one of it's targets:
Msbuild:
<msbuild buildfile="${solutionFile}" xmlns="antlibrg.apache.ant.dotnet">
<property name="Configuration" value="${solutionConfiguration}"/>
</msbuild>
or Devenv:
<exec executable="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" failonerror="true">
<arg value="${solutionFile}" />
<arg value="/build" />
<arg value="${solutionConfiguration}" />
</exec>
The build goes just fine. However, the CruiseControl dashboard doesn't have any messages in the "Tests" and "Errors and Warnings" sections.
I looked at the build log and it shows that all of the warnings and errors from MsBuild (and Devenv) are logged like so, with the priority attribute set to "info":
<message priority="info">
<![CDATA[CLASS_NAME_HERE.cs(0,0): warning CS1030: WARNING_MESSAGE_HERE']]>
</message>
Is there any way for the MsBuild errors and warnings to be logged with the priority attribute set to "warning" or "error" so that they will show up in the dashboard? Or is this something that just cannot be accomplished?
We originally used CruiseControl.net and NAnt, but then decided to investigate would the building be any different with CruiseControl and Ant.
Hopefully that was sufficient information.
Thanks,
Mikko
First off, sorry if I posted this to the wrong forum.
I've set up a environment with CruiseControl, Ant and MSBuild. The problem I'm having has got do with the results that MsBuild or Devenv produce.
Here's my build flow:
- CruiseControl project calls my Ant target.
- The Ant target calls MsBuild.exe (or Devenv.com) in one of it's targets:
Msbuild:
<msbuild buildfile="${solutionFile}" xmlns="antlibrg.apache.ant.dotnet">
<property name="Configuration" value="${solutionConfiguration}"/>
</msbuild>
or Devenv:
<exec executable="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" failonerror="true">
<arg value="${solutionFile}" />
<arg value="/build" />
<arg value="${solutionConfiguration}" />
</exec>
The build goes just fine. However, the CruiseControl dashboard doesn't have any messages in the "Tests" and "Errors and Warnings" sections.
I looked at the build log and it shows that all of the warnings and errors from MsBuild (and Devenv) are logged like so, with the priority attribute set to "info":
<message priority="info">
<![CDATA[CLASS_NAME_HERE.cs(0,0): warning CS1030: WARNING_MESSAGE_HERE']]>
</message>
Is there any way for the MsBuild errors and warnings to be logged with the priority attribute set to "warning" or "error" so that they will show up in the dashboard? Or is this something that just cannot be accomplished?
We originally used CruiseControl.net and NAnt, but then decided to investigate would the building be any different with CruiseControl and Ant.
Hopefully that was sufficient information.
Thanks,
Mikko