Throw an Error in an MSBuild Task
Posted
by MikeHoyle
on Stack Overflow
See other posts from Stack Overflow
or by MikeHoyle
Published on 2010-03-08T15:13:57Z
Indexed on
2010/03/08
15:21 UTC
Read the original article
Hit count: 627
msbuild
How do you throw an error from within an MSBuild task and force the build to fail. Something like:
<Task>
<ThrowError Condition="$(SomeCondition)" Message="There was a problem with the build" />
</Task>
© Stack Overflow or respective owner