Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16986


Ignore:
Timestamp:
05/24/19 13:14:35 (6 years ago)
Author:
dpiringe
Message:

#2924:

  • changed the use of AppDomain.CurrentDomain.BaseDirectory to Directory.GetCurrentDirectory() in projects HeuristicLab.MathJax and HeuristicLab.Problems.GeneticProgramming, this change helps to load these plugins correctly with the new PluginInfrastructure
  • deleted obsolete files from folder HeuristicLab/3.3/Properties and added launchSettings.json for docker
Location:
branches/2924_DotNetCoreMigration
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2924_DotNetCoreMigration/HeuristicLab.ExtLibs/HeuristicLab.MathJax/2.6.1/HeuristicLab.MathJax-2.6.1/Plugin.cs.frame

    r15583 r16986  
    3535    public override void OnLoad() {
    3636      base.OnLoad();
    37       if (!Directory.EnumerateDirectories(AppDomain.CurrentDomain.BaseDirectory, "MathJax", SearchOption.TopDirectoryOnly).Any()) {
    38         ZipFile.ExtractToDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "mathjax.zip"), AppDomain.CurrentDomain.BaseDirectory);
     37      if (!Directory.EnumerateDirectories(Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/, "MathJax", SearchOption.TopDirectoryOnly).Any()) {
     38        ZipFile.ExtractToDirectory(Path.Combine(Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/, "mathjax.zip"), Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/);
    3939      }
    4040    }
  • branches/2924_DotNetCoreMigration/HeuristicLab.Problems.GeneticProgramming/3.3/Plugin.cs.frame

    r15973 r16986  
    4747    public override void OnLoad() {
    4848        base.OnLoad();
    49         if (!Directory.EnumerateDirectories(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "libs"), SearchOption.TopDirectoryOnly).Any()) {
    50           ZipFile.ExtractToDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "robocode.zip")), AppDomain.CurrentDomain.BaseDirectory);
     49        if (!Directory.EnumerateDirectories(Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/, Path.Combine("Robocode", "libs"), SearchOption.TopDirectoryOnly).Any()) {
     50          ZipFile.ExtractToDirectory(Path.Combine(Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/, Path.Combine("Robocode", "robocode.zip")), Directory.GetCurrentDirectory()/*AppDomain.CurrentDomain.BaseDirectory*/);
    5151        }
    5252      }
Note: See TracChangeset for help on using the changeset viewer.