Changeset 91 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 03/22/08 15:59:07 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/ClassInfoAttribute.cs
r2 r91 32 32 public class ClassInfoAttribute : System.Attribute { 33 33 private string name; 34 35 34 /// <summary> 36 35 /// Name of the plugin to which the assembly belongs to. … … 42 41 43 42 private string version; 44 45 43 public string Version { 46 44 get { return version; } … … 48 46 } 49 47 50 51 48 private string description; 52 53 49 public string Description { 54 50 get { return description; } -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r30 r91 49 49 <ItemGroup> 50 50 <Compile Include="ApplicationInfo.cs" /> 51 <Compile Include="AssemblyBuildDateAttribute.cs" /> 51 52 <Compile Include="BaseClasses\ApplicationBase.cs" /> 52 53 <Compile Include="BaseClasses\PluginBase.cs" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/Loader.cs
r37 r91 333 333 pluginInfo.Name = plugin.Name; 334 334 pluginInfo.Version = plugin.Version; 335 336 object[] customAttributes = plugin.GetType().Assembly.GetCustomAttributes(typeof(AssemblyBuildDateAttribute), false); 337 if(customAttributes.Length > 0) { 338 pluginInfo.BuildDate = ((AssemblyBuildDateAttribute)customAttributes[0]).BuildDate; 339 } 340 335 341 string baseDir = AppDomain.CurrentDomain.BaseDirectory; 336 342 -
trunk/sources/HeuristicLab.PluginInfrastructure/PluginInfo.cs
r37 r91 32 32 public class PluginInfo { 33 33 private string name; 34 35 34 public string Name { 36 35 get { return name; } 37 36 set { name = value; } 38 37 } 39 40 38 private Version version; 41 42 39 public Version Version { 43 40 get { return version; } 44 41 set { version = value; } 45 42 } 46 47 private List<string> files = new List<string> (); 43 private DateTime buildDate; 44 public DateTime BuildDate { 45 get { return buildDate; } 46 set { buildDate = value; } 47 } 48 private List<string> files = new List<string>(); 48 49 /// <summary> 49 50 /// Names of all files that belong to this plugin. … … 54 55 } 55 56 56 private List<PluginInfo> dependencies = new List<PluginInfo> 57 private List<PluginInfo> dependencies = new List<PluginInfo>(); 57 58 public List<PluginInfo> Dependencies { 58 59 get { return dependencies; } 59 60 } 60 61 private List<string> assemblies = new List<string>(); 61 62 62 /// <summary> 63 63 /// Names of the assemblies that belong to this plugin. … … 67 67 set { assemblies = value; } 68 68 } 69 70 71 69 private string message; 72 70 public string Message { … … 74 72 set { message = value; } 75 73 } 76 77 74 public override string ToString() { 78 75 return Name; 79 76 } 80 81 77 // equals and hashcode have to be implemented because we want to compare PluginDescriptions from 82 78 // different AppDomains and serialization destroys reference equality … … 88 84 return other.Name == this.Name && other.Version == this.Version; 89 85 } 90 91 86 public override int GetHashCode() { 92 87 if(version != null) { -
trunk/sources/HeuristicLab.PluginInfrastructure/Properties/AssemblyInfo.frame
r30 r91 23 23 using System.Runtime.CompilerServices; 24 24 using System.Runtime.InteropServices; 25 using HeuristicLab.PluginInfrastructure; 25 26 26 27 // General Information about an assembly is controlled through the following
Note: See TracChangeset
for help on using the changeset viewer.