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>2016-09-28 02:43:42 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2016-09-28 02:43:42 +0300
commit8bd5d9718f10507e5284245d9870928dd61af9dd (patch)
treea3ccc758879e060e66887e3b0ccb26bc28885b44 /dir.props
parent88c3920c4c8dfe5a7e06b60f509139731d26467a (diff)
Always initialize Targets* properties to false
We were hitting some cases where TargetsWindows was set as and environment variable and caused some of our builds to start failing. These should never be set outside of the Choose statement based on OSGroup so we are always defaulting them to false to ensure the enviroment doesn't end up overriding them.
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props10
1 files changed, 10 insertions, 0 deletions
diff --git a/dir.props b/dir.props
index 8b18c26bdf..9fbfa0e672 100644
--- a/dir.props
+++ b/dir.props
@@ -230,6 +230,16 @@
</Otherwise>
</Choose>
+ <!-- initialize all the targets variables to false as they should only be set below -->
+ <PropertyGroup>
+ <TargetsWindows>false</TargetsWindows>
+ <TargetsUnix>false</TargetsUnix>
+ <TargetsLinux>false</TargetsLinux>
+ <TargetsOSX>false</TargetsOSX>
+ <TargetsFreeBSD>false</TargetsFreeBSD>
+ <TargetsNetBSD>false</TargetsNetBSD>
+ </PropertyGroup>
+
<!-- Setup properties per OSGroup -->
<Choose>
<When Condition="'$(OSGroup)'=='AnyOS'">