Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2015-02-19 21:20:24 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2015-02-19 21:20:24 +0300
commit60967f18fd7b47dff0576759e3ea6dcb1ea3cbcb (patch)
tree41536c7d39072327323971a5012c277407e81f21 /dir.traversal.targets
parentfc5f47f983515a40c384eb47c11c6cdd70e52b32 (diff)
Propagate the errors that occur in the dir.traversals.targets file.
We recently switch to using ErrorAndContinue and when doing so the errors weren't propagated to the outer build. We now use the well known msbuild property MSBuildLastTaskResult to check the result of the last task and use that to determine if any projects failed and if so we Error.
Diffstat (limited to 'dir.traversal.targets')
-rw-r--r--dir.traversal.targets5
1 files changed, 5 insertions, 0 deletions
diff --git a/dir.traversal.targets b/dir.traversal.targets
index d95aaa9712..c67e4d680f 100644
--- a/dir.traversal.targets
+++ b/dir.traversal.targets
@@ -21,6 +21,8 @@
BuildInParallel="true"
ContinueOnError="ErrorAndContinue" />
+ <!-- Given we ErrorAndContinue we need to propagate the error if the overall task failed -->
+ <Error Condition="'$(MSBuildLastTaskResult)'=='false'" />
</Target>
<Target Name="CleanAllProjects">
@@ -41,6 +43,9 @@
Condition="'$(SerializeProjects)'!='true'"
BuildInParallel="true"
ContinueOnError="ErrorAndContinue" />
+
+ <!-- Given we ErrorAndContinue we need to propagate the error if the overall task failed -->
+ <Error Condition="'$(MSBuildLastTaskResult)'=='false'" />
</Target>
<PropertyGroup>