diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-10-28 01:17:05 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-10-28 01:17:05 +0300 |
commit | 11e3975555caef20547c0cc3cdd5e4ff0bca26a2 (patch) | |
tree | 3cead48f727e588af5a7e63a8e32746d477f244a /main/src/addins/MonoDevelop.DotNetCore | |
parent | f0b82fe6666c6a066f6b2c08942ccc1a6f4be883 (diff) |
[DotNetCore] Use the correct frameworks array
Diffstat (limited to 'main/src/addins/MonoDevelop.DotNetCore')
-rw-r--r-- | main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.Gui/DotNetCoreRuntimeOptionsPanelWidget.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.Gui/DotNetCoreRuntimeOptionsPanelWidget.cs b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.Gui/DotNetCoreRuntimeOptionsPanelWidget.cs index 11dcf4ce29..c5cf91c091 100644 --- a/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.Gui/DotNetCoreRuntimeOptionsPanelWidget.cs +++ b/main/src/addins/MonoDevelop.DotNetCore/MonoDevelop.DotNetCore.Gui/DotNetCoreRuntimeOptionsPanelWidget.cs @@ -35,7 +35,7 @@ namespace MonoDevelop.DotNetCore.Gui { partial class DotNetCoreRuntimeOptionsPanelWidget { - readonly List<TargetFramework> installedFrameworks; + readonly List<TargetFramework> knownFrameworks; readonly DotNetProject project; readonly DotNetCoreProjectExtension dotNetCoreProject; @@ -56,8 +56,8 @@ namespace MonoDevelop.DotNetCore.Gui } else { dotNetCoreProject = project.GetFlavor<DotNetCoreProjectExtension> (); var supportedTargetFrameworks = new DotNetCoreProjectSupportedTargetFrameworks (project); - installedFrameworks = supportedTargetFrameworks.GetFrameworks ().ToList (); - var knownFrameworks = supportedTargetFrameworks.GetKnownFrameworks () + var installedFrameworks = supportedTargetFrameworks.GetFrameworks ().ToList (); + knownFrameworks = supportedTargetFrameworks.GetKnownFrameworks () .Concat (installedFrameworks) .Distinct () .ToList (); @@ -96,10 +96,10 @@ namespace MonoDevelop.DotNetCore.Gui if (project == null || runtimeVersionCombo.Active == -1 || project.HasMultipleTargetFrameworks) return; - TargetFramework framework = installedFrameworks [runtimeVersionCombo.Active]; + TargetFramework framework = knownFrameworks [runtimeVersionCombo.Active]; if (framework != project.TargetFramework) { - project.TargetFramework = installedFrameworks [runtimeVersionCombo.Active]; + project.TargetFramework = knownFrameworks [runtimeVersionCombo.Active]; } } } |