Changeset 12969 for branches/gteufl/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs
- Timestamp:
- 09/25/15 14:39:59 (9 years ago)
- Location:
- branches/gteufl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gteufl
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 25 obj
-
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:ignore
-
branches/gteufl/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs
r9456 r12969 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 26 26 namespace HeuristicLab.PluginInfrastructure { 27 27 public partial class FrameworkVersionErrorDialog : Form { 28 public static bool NET4FullProfileInstalled { 28 private const string NETVersionPath = @"Software\Microsoft\NET Framework Setup\NDP\v4\Full"; 29 private const string NETVersion = "Version"; 30 31 public static bool NET4_5Installed { 29 32 get { 30 33 try { 31 return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; 34 var registryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(NETVersionPath); 35 if (registryKey != null) { 36 var versionKey = registryKey.GetValue(NETVersion); 37 if (versionKey != null) { 38 Version version = new Version(versionKey.ToString()); 39 return version.Major >= 4 && version.Minor >= 5; 40 } 41 } 32 42 } 33 43 catch (System.Security.SecurityException) { 34 44 return false; 35 45 } 46 return false; 36 47 } 37 48 } … … 44 55 get { 45 56 var monoVersion = MonoVersion; 46 var minRequiredVersion = new Version( 2, 11, 4);47 48 //we need at least mono version 2.11.457 var minRequiredVersion = new Version(3, 6, 0); 58 59 //we need at least mono version 3.6.0 49 60 if (monoVersion != null && monoVersion >= minRequiredVersion) { 50 61 return true; … … 84 95 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { 85 96 try { 86 System.Diagnostics.Process.Start("http://www.microsoft.com/ downloads/en/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7");97 System.Diagnostics.Process.Start("http://www.microsoft.com/en-us/download/details.aspx?id=30653"); 87 98 linkLabel.LinkVisited = true; 88 99 }
Note: See TracChangeset
for help on using the changeset viewer.