Skip to content

Commit

Permalink
[MS.Build] ProjectOnErrorInstance should not cause build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Jun 2, 2014
1 parent c29ae4c commit 8498e0d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ bool DoBuildTarget (ProjectTargetInstance target, TargetResult targetResult, Int
continue;
}

var onError = child as ProjectOnErrorInstance;
if (onError != null)
continue; // evaluated under catch clause.

throw new NotSupportedException (string.Format ("Unexpected Target element children \"{0}\"", child.GetType ()));
}
} catch (Exception ex) {
Expand Down

0 comments on commit 8498e0d

Please sign in to comment.