diff options
author | nosami <jasonimison@gmail.com> | 2019-09-13 15:18:53 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-09-13 15:18:53 +0300 |
commit | 7a3f9b6740376cf6a036c9502d5da7681021828e (patch) | |
tree | 8b0601d30350528f69d03dc91bd71c5f926bf61f /main/src/addins/MonoDevelop.DotNetCore | |
parent | 9b15cc50441717afdf94701b3bc582b2b53111a3 (diff) |
Change to check for 2.2.x
Diffstat (limited to 'main/src/addins/MonoDevelop.DotNetCore')
-rw-r--r-- | main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs index ba68ab7289..e685de18bb 100644 --- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs +++ b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs @@ -43,16 +43,16 @@ namespace MonoDevelop.DotNetCore public override string Description => GetDescription (); - public override string Version => DotNetCoreRuntime.Versions.FirstOrDefault ()?.ToString (); + public override string Version => version?.ToString (); public override string ApplicationId => "392e9bd0-7214-4d2f-8b38-420b38e3b20f"; + readonly DotNetCoreVersion version = DotNetCoreRuntime.Versions.FirstOrDefault (v => v.Major == 2 && v.Minor == 2); + public override UpdateInfo GetUpdateInfo () { - var latestRuntimeVersion = - DotNetCoreRuntime.Versions.FirstOrDefault(v => v.Major == 2 && v.Minor >= 2); - if (latestRuntimeVersion != null) { - return new UpdateInfo (ApplicationId, latestRuntimeVersion.Version); + if (version != null) { + return new UpdateInfo (ApplicationId, version.Version); } // Force the install of the 2.2 runtime |