Changeset 11113 for trunk/sources
- Timestamp:
- 07/07/14 15:25:17 (10 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Access/3.3/ClientInformationUtils.cs
r9456 r11113 30 30 using HeuristicLab.Data; 31 31 using HeuristicLab.Optimization; 32 using HeuristicLab.PluginInfrastructure; 32 33 33 34 namespace HeuristicLab.Clients.Access { … … 72 73 73 74 public static string GetHLVersion() { 74 FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); 75 return versionInfo.FileVersion; 75 return AssemblyHelpers.GetFileVersion(Assembly.GetExecutingAssembly()); 76 76 } 77 77 -
trunk/sources/HeuristicLab.Core/3.3/OperatorExecutionException.cs
r9456 r11113 21 21 22 22 using System; 23 using System.Diagnostics;23 using HeuristicLab.PluginInfrastructure; 24 24 25 25 namespace HeuristicLab.Core { … … 34 34 get { 35 35 string name = "\"" + op.Name + "\""; 36 var assembly = op.GetType().Assembly; 36 37 if (!op.Name.Equals(op.ItemName)) name += " (" + op.ItemName + ")"; 37 if (!string.IsNullOrEmpty(op.GetType().Assembly.Location)) { 38 var fvi = FileVersionInfo.GetVersionInfo(op.GetType().Assembly.Location); 39 name += " [" + fvi.FileName + ": " + fvi.FileVersion + "]"; 38 if (!string.IsNullOrEmpty(assembly.Location)) { 39 name += " [" + assembly.Location + ": " + AssemblyHelpers.GetFileVersion(assembly) + "]"; 40 40 } 41 41 if (InnerException == null) -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/InstallationManagerForm.cs
r9456 r11113 22 22 using System.Collections.Generic; 23 23 using System.ComponentModel; 24 using System.Diagnostics;25 24 using System.IO; 26 25 using System.Linq; … … 37 36 : base() { 38 37 InitializeComponent(); 39 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 40 Text = "HeuristicLab Plugin Manager " + pluginInfrastructureVersion.FileVersion; 38 Text = "HeuristicLab Plugin Manager " + AssemblyHelpers.GetFileVersion(GetType().Assembly); 41 39 42 40 pluginManager.PluginLoaded += pluginManager_PluginLoaded; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/PluginUpdaterForm.cs
r9456 r11113 22 22 using System.Collections.Generic; 23 23 using System.ComponentModel; 24 using System.Diagnostics;25 24 using System.IO; 26 25 using System.Linq; … … 39 38 : base() { 40 39 InitializeComponent(); 41 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 42 Text = "HeuristicLab Plugin Manager " + pluginInfrastructureVersion.FileVersion; 40 Text = "HeuristicLab Plugin Manager " + AssemblyHelpers.GetFileVersion(GetType().Assembly); 43 41 pluginManager.PluginLoaded += pluginManager_PluginLoaded; 44 42 pluginManager.PluginUnloaded += pluginManager_PluginUnloaded; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/ErrorHandling.cs
r9456 r11113 21 21 22 22 using System; 23 using System.Diagnostics;24 23 using System.Windows.Forms; 25 24 … … 31 30 } else { 32 31 string message = 33 "HeuristicLab version: " + FileVersionInfo.GetVersionInfo(typeof(ErrorHandling).Assembly.Location).FileVersion+ Environment.NewLine +32 "HeuristicLab version: " + AssemblyHelpers.GetFileVersion(typeof(ErrorHandling).Assembly) + Environment.NewLine + 34 33 exception.GetType().Name + ": " + exception.Message + Environment.NewLine + 35 34 exception.StackTrace; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/HeuristicLab.PluginInfrastructure-3.3.csproj
r8818 r11113 215 215 <DependentUpon>PluginView.cs</DependentUpon> 216 216 </Compile> 217 <Compile Include="AssemblyHelpers.cs" /> 217 218 <Compile Include="CommandLineArgumentHandling\Arguments\OpenArgument.cs" /> 218 219 <Compile Include="CommandLineArgumentHandling\Arguments\HideStarterArgument.cs" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Starter/AboutDialog.cs
r9456 r11113 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Diagnostics;25 24 using System.Linq; 26 25 using System.Reflection; … … 80 79 81 80 private string GetVersion() { 82 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 83 return pluginInfrastructureVersion.FileVersion; 81 return AssemblyHelpers.GetFileVersion(GetType().Assembly); 84 82 } 85 83 -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Starter/SplashScreen.cs
r9456 r11113 21 21 22 22 using System; 23 using System.Diagnostics;24 23 using System.Linq; 25 24 using System.Reflection; … … 45 44 RegisterPluginManagerEventHandlers(); 46 45 47 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 48 versionLabel.Text = "Version " + pluginInfrastructureVersion.FileVersion; 46 versionLabel.Text = "Version " + AssemblyHelpers.GetFileVersion(GetType().Assembly); 49 47 infoLabel.Text = ""; 50 48 -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.cs
r9456 r11113 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Diagnostics;25 24 using System.IO; 26 25 using System.Linq; … … 60 59 smallImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.HeuristicLab.ToBitmap()); 61 60 smallImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.UpdateAvailable.ToBitmap()); 62 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 63 Text = "HeuristicLab " + pluginInfrastructureVersion.FileVersion; 61 Text = "HeuristicLab " + AssemblyHelpers.GetFileVersion(GetType().Assembly); 64 62 65 63 string pluginPath = Path.GetFullPath(Application.StartupPath); … … 204 202 205 203 private void AddPluginManagerItem() { 206 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location);207 204 pluginManagerListViewItem = new ListViewItem(pluginManagerItemName, 0); 208 205 pluginManagerListViewItem.Group = applicationsListView.Groups["Plugin Management"]; 209 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, pluginInfrastructureVersion.FileVersion));206 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, AssemblyHelpers.GetFileVersion(GetType().Assembly))); 210 207 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "Install, upgrade or delete plugins")); 211 208 pluginManagerListViewItem.ToolTipText = "Install, upgrade or delete plugins";
Note: See TracChangeset
for help on using the changeset viewer.