Ejemplo n.º 1
0
        private void Save()
        {
            var tmp = Path.GetTempFileName();

            _module.Write(tmp);
            _mod.WritePrimaryAssembly(File.ReadAllBytes(tmp), false);

            if (_monoAssembly != null)
            {
                tmp = Path.GetTempFileName();
                _monoModule.Write(tmp);
                _mod.WritePrimaryAssembly(File.ReadAllBytes(tmp), true);
            }

            _mod.Save(string.Format(DefaultConfigurations.OutputFileNameFormat, _mod.Name));
#if DEBUG
            _module.Write("test-mod.dll");
            _monoModule?.Write("test-mod-mono.dll");
#endif
        }