views:

731

answers:

3

When running msbuild.exe with ANT's exec task, errors in the .net code do not result in the build process failing.

Does anyone have a clue?

+3  A: 

I use Nant to run some MSBuild tasks. Every time I use the failonbuild attribute of that task, it fails for me. Looking at Apache's documentation for Ant, it would appear the same attribute is there as well. Are you using this attribute?

JamesEggers
I assume that you mean "If I use the failonbuild attribute of that task and msbuild fails, then the build process fails for me."
Eddie
A: 

I can't believe I looked over that... damn fridays... Exec's failonerror works like a charm. Thx for your help!

Please mark the answer as accepted in so others in the future can easily find it also. Glad that it is working for you now.
JamesEggers
I find it very weird that failonerror defaults to false.
JesperE
A: 

What do you let the msbuild task do ?

When I used NAnt previously, I used the task to build a VS.NET solution.

Right now, I'm not using NAnt anymore, I use msbuild instead. :)

Frederik Gheysels