Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/19 10:01:44 (5 years ago)
Author:
mkommend
Message:

#2521: Updated branch with most recent trunk changes.

Location:
branches/2521_ProblemRefactoring
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring

  • branches/2521_ProblemRefactoring/HeuristicLab.Scripting/3.3/Script.cs

    r17226 r17333  
    4040  public abstract class Script : NamedItem, IProgrammableItem {
    4141    #region Fields & Properties
     42    public static readonly HashSet<string> ExcludedAssemblyFileNames = new HashSet<string> { "IKVM.OpenJDK.ClassLibrary.dll" };
    4243    public static new Image StaticItemImage {
    4344      get { return VSImageLibrary.Script; }
     
    124125    public virtual IEnumerable<Assembly> GetAssemblies() {
    125126      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)))
    127129        .GroupBy(x => Regex.Replace(Path.GetFileName(x.Location), @"-[\d.]+\.dll$", ""))
    128130        .Select(x => x.OrderByDescending(y => y.GetName().Version).First())
Note: See TracChangeset for help on using the changeset viewer.