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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornosami <jasonimison@gmail.com>2019-09-13 15:23:59 +0300
committernosami <jasonimison@gmail.com>2019-09-13 15:23:59 +0300
commitdc5c2147dd71a1674c623c1226d350ba4d63f6a0 (patch)
tree9fe2cc7d55767e6cbf4a0e7df46b2736d7fdcb35 /main/src/addins/MonoDevelop.DotNetCore
parent7a3f9b6740376cf6a036c9502d5da7681021828e (diff)
Do not force download on users who never installed any dotnet cli
Diffstat (limited to 'main/src/addins/MonoDevelop.DotNetCore')
-rw-r--r--main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs
index e685de18bb..2598af4890 100644
--- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs
+++ b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore/DotNetCoreRuntimeSystemInformation.cs
@@ -55,8 +55,11 @@ namespace MonoDevelop.DotNetCore
return new UpdateInfo (ApplicationId, version.Version);
}
- // Force the install of the 2.2 runtime
- return new UpdateInfo (ApplicationId, versionId: 0);
+ if (DotNetCoreRuntime.IsInstalled)
+ // Force the install of the 2.2 runtime
+ return new UpdateInfo (ApplicationId, versionId: 0);
+ // Do not force it on users who never installed any dotnet cli and do not need it.
+ return null;
}
string GetDescription ()