Changeset 1395
- Timestamp:
- 03/21/09 18:02:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Loader.cs
r1229 r1395 35 35 /// <param name="pluginName">The plugin that has been loaded.</param> 36 36 public delegate void PluginLoadedEventHandler(string pluginName); 37 37 38 38 public delegate void PluginLoadFailedEventHandler(string pluginName, string args); 39 39 … … 188 188 info.Assemblies.Add(assembly.FullName); 189 189 info.Message = "Couldn't load file: " + ex.FileName; 190 disabledPlugins.Add(info); 191 } 192 catch (InvalidPluginException ex) { 193 PluginInfo info = new PluginInfo(); 194 AssemblyName name = assembly.GetName(); 195 info.Name = name.Name; 196 info.Version = name.Version; 197 info.Files.Add(assembly.Location); 198 info.Assemblies.Add(assembly.FullName); 199 info.Message = "Couldn't load plugin class from assembly: " + assembly.GetName().Name+". Necessary plugin attributes are missing."; 190 200 disabledPlugins.Add(info); 191 201 }
Note: See TracChangeset
for help on using the changeset viewer.