public void SaveAssembly()
{
try
{
_module.CreateGlobalFunctions();
if (Debugger.IsAttached)
_assembly.Save(_assemblyName + ".dll");
//var pdbGenerator = _debugOn ? System.Runtime.CompilerServices.DebugInfoGenerator.CreatePdbGenerator() : null;
}
catch (Exception e)
{
System.Diagnostics.Debug.WriteLine(e.ToString());
// Don't rethrow. Non-critical.
}
}