diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-02-14 03:44:58 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-02-14 03:44:58 +0300 |
commit | aa4f4b3c483c41b48efedc0ca44277b1144418b2 (patch) | |
tree | 864b0cb65fceff4076adc1494ff10e8bef8e14ee /main/src | |
parent | 316ae85d862e32bed812f98b7eb6d4fc9d73faa5 (diff) |
[Addins] PlatformCondition fixup
Use OS Version, not Darwin Version for checks.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core.AddIns/PlatformCondition.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.AddIns/PlatformCondition.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.AddIns/PlatformCondition.cs index 607e07936e..a4a0372093 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.AddIns/PlatformCondition.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.AddIns/PlatformCondition.cs @@ -57,7 +57,7 @@ namespace MonoDevelop.Core.AddIns Version version; if (Version.TryParse (conditionNode.GetAttribute ("minVersion"), out version)) - result |= Environment.OSVersion.Version >= version; + result |= (Platform.IsMac ? MacSystemInformation.OsVersion : Environment.OSVersion.Version) >= version; return negate ? !result : result; } |