Changeset 17333 for branches/2521_ProblemRefactoring/HeuristicLab.Scripting
- Timestamp:
- 10/17/19 10:01:44 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
/trunk merged: 17242,17255,17267-17268,17272-17274,17276,17278,17301-17302,17305-17306,17316,17329
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Scripting/3.3/Script.cs
r17226 r17333 40 40 public abstract class Script : NamedItem, IProgrammableItem { 41 41 #region Fields & Properties 42 public static readonly HashSet<string> ExcludedAssemblyFileNames = new HashSet<string> { "IKVM.OpenJDK.ClassLibrary.dll" }; 42 43 public static new Image StaticItemImage { 43 44 get { return VSImageLibrary.Script; } … … 124 125 public virtual IEnumerable<Assembly> GetAssemblies() { 125 126 var assemblies = AppDomain.CurrentDomain.GetAssemblies() 126 .Where(a => !a.IsDynamic && File.Exists(a.Location)) 127 .Where(a => !a.IsDynamic && File.Exists(a.Location) 128 && !ExcludedAssemblyFileNames.Contains(Path.GetFileName(a.Location))) 127 129 .GroupBy(x => Regex.Replace(Path.GetFileName(x.Location), @"-[\d.]+\.dll$", "")) 128 130 .Select(x => x.OrderByDescending(y => y.GetName().Version).First())
Note: See TracChangeset
for help on using the changeset viewer.