Changeset 2688 for trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
- Timestamp:
- 01/27/10 11:11:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManager.cs
r2612 r2688 28 28 using System.ComponentModel; 29 29 using HeuristicLab.PluginInfrastructure.UpdateLocationReference; 30 using System.Reflection; 30 31 31 32 namespace HeuristicLab.PluginInfrastructure.Advanced { … … 67 68 builder.Append("Build date: ").AppendLine(desc.BuildDate.ToString()); 68 69 builder.AppendLine("Files: "); 69 foreach (string fileName in desc.Files) {70 foreach (string fileName in from file in desc.Files select file.Name) { 70 71 builder.AppendLine(fileName); 71 72 } … … 95 96 StringBuilder builder = new StringBuilder(); 96 97 var missingFiles = from x in desc.Files 97 where !File.Exists(x )98 select x ;98 where !File.Exists(x.Name) 99 select x.Name; 99 100 if (missingFiles.Count() > 0) { 100 foreach (string fileName in desc.Files) {101 foreach (string fileName in from file in desc.Files select file.Name) { 101 102 if (!File.Exists(fileName)) builder.Append("Missing file: ").AppendLine(fileName); 102 103 } … … 126 127 // or there was a problem loading the assemblies 127 128 builder.AppendLine("There was a problem while loading assemblies: "); 128 foreach ( string assembly in desc.Assemblies) {129 builder.AppendLine(assembly );129 foreach (AssemblyName assembly in desc.AssemblyNames) { 130 builder.AppendLine(assembly.FullName); 130 131 } 131 132 return builder.ToString(); … … 196 197 public void Remove(IEnumerable<string> pluginNames) { 197 198 var fileNames = from pluginToDelete in PluginDescriptionIterator.IterateDependentsTopDown(GetPluginDescriptions(pluginNames), pluginManager.Plugins) 198 from file Namein pluginToDelete.Files199 select Path.Combine(pluginDir, file Name);199 from file in pluginToDelete.Files 200 select Path.Combine(pluginDir, file.Name); 200 201 var args = new PluginInfrastructureCancelEventArgs("Deleting", fileNames); 201 202 OnPreDelete(args);
Note: See TracChangeset
for help on using the changeset viewer.