Terraria.ModLoader.RoslynPdbFixer.Fix C# (CSharp) 메소드

Fix() 공개 정적인 메소드

Roslyn outputs pdb files that are incompatible with cecil modified assemblies (which we use for reload support) Mono.Cecil can parse the roslyn debug info, and then output a compatible pdb file and binary using the windows API
public static Fix ( string dll ) : void
dll string
리턴 void
        public static void Fix(string dll) {
            var asm = AssemblyDefinition.ReadAssembly(dll);
            asm.MainModule.ReadSymbols();
            var fstream = File.Create(dll);
            asm.Write(fstream, new WriterParameters { WriteSymbols = true });
            fstream.Close();
        }
    }
RoslynPdbFixer