Пример #1
0
 public static ModuleDefinition LoadDistanceModule(string distanceAssemblyFilename)
 {
     try
     {
         ColoredOutput.WriteInformation("Loading TARGET module...");
         return ModuleDefinition.ReadModule(distanceAssemblyFilename);
     }
     catch (Exception e)
     {
         ErrorHandler.TerminateWithError($"Couldn't load TARGET module definition. Exception details:\n{e}");
     }
     return null;
 }
Пример #2
0
 public static ModuleDefinition LoadBootstrapModule(string bootstrapAssemblyFilename)
 {
     try
     {
         ColoredOutput.WriteInformation("Loading BOOTSTRAP module...");
         return ModuleDefinition.ReadModule(bootstrapAssemblyFilename);
     }
     catch (Exception e)
     {
         ErrorHandler.TerminateWithError($"Could't load BOOTSTRAP module definition. Exception details:\n{e}");
     }
     return null;
 }