Free cookie consent management tool by TermsFeed Policy Generator

Changes between Version 9 and Version 10 of Documentation/DevelopmentCenter/IntegrateHeuristicLab


Ignore:
Timestamp:
01/12/20 11:39:34 (5 years ago)
Author:
gkronber
Comment:

Update Main() to load all assemblies before deserialization.

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/DevelopmentCenter/IntegrateHeuristicLab

    v9 v10  
    1414 static void Main(string[] args) {
    1515      string samplePath = @"..\..\User-defined-algorithm.hl";
     16      // load all assemblies, otherwise HEAL.Attic doesn't load types
     17      var dllFiles = Directory.EnumerateFiles(Environment.CurrentDirectory, "*.dll");
     18      foreach (var dllFile in dllFiles) {
     19        System.Reflection.Assembly.LoadFile(dllFile);
     20      }
    1621      ContentManager.Initialize(new PersistenceContentManager());
    1722      ContentManager.LoadAsync(samplePath, LoadingCompleted);