Changeset 11121 for stable/HeuristicLab.PluginInfrastructure
- Timestamp:
- 07/07/14 17:00:14 (10 years ago)
- Location:
- stable
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11082,11113,11117
- Property svn:mergeinfo changed
-
stable/HeuristicLab.PluginInfrastructure/3.3/Advanced/InstallationManagerForm.cs
r9456 r11121 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; -
stable/HeuristicLab.PluginInfrastructure/3.3/Advanced/PluginUpdaterForm.cs
r9456 r11121 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; -
stable/HeuristicLab.PluginInfrastructure/3.3/AssemblyHelpers.cs
r11113 r11121 34 34 object[] attributes = assembly.GetCustomAttributes(typeof(T), false); 35 35 if (attributes.Length == 0) { 36 throw new Exception(string.Format("No attributes of type {0} found in assembly {1}", typeof(T).Name,36 throw new InvalidOperationException(string.Format("No attributes of type {0} found in assembly {1}", typeof(T).Name, 37 37 assembly.FullName)); 38 38 } … … 41 41 var propertyInfo = attribute.GetType().GetProperty(propertyName); 42 42 if (propertyInfo == null) { 43 throw new Exception(string.Format("No property {0} found in attribute {1}, assembly: {2}",43 throw new InvalidOperationException(string.Format("No property {0} found in attribute {1}, assembly: {2}", 44 44 propertyName, typeof(T).Name, assembly.FullName)); 45 45 } -
stable/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/ErrorHandling.cs
r9456 r11121 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; -
stable/HeuristicLab.PluginInfrastructure/3.3/HeuristicLab.PluginInfrastructure-3.3.csproj
r8818 r11121 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" /> -
stable/HeuristicLab.PluginInfrastructure/3.3/Starter/AboutDialog.cs
r9456 r11121 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 -
stable/HeuristicLab.PluginInfrastructure/3.3/Starter/SplashScreen.cs
r9456 r11121 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 -
stable/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.cs
r9456 r11121 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.