Changeset 17158 for stable/HeuristicLab.Scripting
- Timestamp:
- 07/23/19 20:27:38 (5 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/branches/2435-alglib_3_15 (added) merged: 16683-16684,17034,17036 /trunk merged: 17037,17110
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Scripting/3.3/Script.cs
r17097 r17158 29 29 using System.Reflection; 30 30 using System.Text; 31 using System.Text.RegularExpressions; 32 using HEAL.Attic; 31 33 using HeuristicLab.Common; 32 34 using HeuristicLab.Common.Resources; 33 35 using HeuristicLab.Core; 34 using HEAL.Attic;35 36 using Microsoft.CSharp; 36 37 … … 122 123 123 124 public virtual IEnumerable<Assembly> GetAssemblies() { 124 var assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.IsDynamic && File.Exists(a.Location)).ToList(); 125 var assemblies = AppDomain.CurrentDomain.GetAssemblies() 126 .Where(a => !a.IsDynamic && File.Exists(a.Location)) 127 .GroupBy(x => Regex.Replace(Path.GetFileName(x.Location), @"-[\d.]+\.dll$", "")) 128 .Select(x => x.OrderByDescending(y => y.GetName().Version).First()) 129 .ToList(); 125 130 assemblies.Add(typeof(Microsoft.CSharp.RuntimeBinder.Binder).Assembly); // for dlr functionality 126 131 return assemblies;
Note: See TracChangeset
for help on using the changeset viewer.