Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/08 15:59:07 (16 years ago)
Author:
gkronber
Message:
  • added an attribute for the build time of an assembly.
  • build-date is automatically updated via SubWCRev in the pre-build action.
  • adapted PluginManager to correctly handle plugins with same version but newer build date

fixes ticket #39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure.GUI/PluginSource.cs

    r2 r91  
    7777        string version = child.Attributes["Version"].Value;
    7878
    79         PluginDescription description = new PluginDescription(name, new Version(version), this);
     79        DateTime buildDate;
     80        if(child.Attributes["Build"] != null) {
     81          string build = child.Attributes["Build"].Value;
     82          DateTime.TryParse(build, System.Globalization.CultureInfo.InvariantCulture.DateTimeFormat, System.Globalization.DateTimeStyles.AssumeUniversal, out buildDate);
     83        } else {
     84          buildDate = DateTime.MinValue;
     85        }
     86        PluginDescription description = new PluginDescription(name, new Version(version), buildDate, this);
    8087        availablePlugins.Add(description);
    8188
Note: See TracChangeset for help on using the changeset viewer.