static void LoadAndDump(ZipArchiveEntry entry, string version) { var data = StreamToArray(entry.Open()); AppDomain ad = AppDomain.CreateDomain("parse_" + ++domain_id); DoParse p = (DoParse)ad.CreateInstanceAndUnwrap(typeof(DoParse).Assembly.FullName, typeof(DoParse).FullName); p.ParseAssembly(data, version, entry.Name, entry.FullName, dump_asm, dump_ver, dump_guids_for_msbuild); AppDomain.Unload(ad); }
static void LoadAndDump(ZipArchiveEntry entry, string version) { // Console.WriteLine ("Dumping {0}", entry); var data = StreamToArray(entry.Open()); AppDomain ad = AppDomain.CreateDomain("parse_" + ++domain_id); DoParse p = (DoParse)ad.CreateInstanceAndUnwrap(typeof(DoParse).Assembly.FullName, typeof(DoParse).FullName); p.ParseAssembly(data, version, entry.Name, entry.FullName, dump_asm, dump_ver); AppDomain.Unload(ad); }
static void LoadAndDump(ZipArchiveEntry entry, string version) { var data = StreamToArray(entry.Open()); AppDomain ad = AppDomain.CreateDomain("parse_" + ++domain_id); DoParse p = (DoParse)ad.CreateInstanceAndUnwrap(typeof(DoParse).Assembly.FullName, typeof(DoParse).FullName); var nugetData = p.ParseAssembly(data, version, entry.Name, entry.FullName); if (!ignoredAsmTable.ContainsKey(nugetData.IgnoredAsmKey)) { ignoredAsmTable [nugetData.IgnoredAsmKey] = nugetData; } if (!ignoredAsmVerTable.ContainsKey(nugetData.IgnoredAsmVerKey)) { ignoredAsmVerTable [nugetData.IgnoredAsmVerKey] = nugetData; } AppDomain.Unload(ad); }