Skip to content

Commit

Permalink
Manually remove reference to dotnet core
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Byass committed Sep 6, 2020
1 parent 4b39634 commit edd9715
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cpp2IL/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ public static void Main(string[] args)
{
var dllPath = Path.Combine(outputPath, assembly.MainModule.Name);

var reference = assembly.MainModule.AssemblyReferences.FirstOrDefault(a => a.Name == "System.Private.CoreLib");
if(reference != null)
assembly.MainModule.AssemblyReferences.Remove(reference);

assembly.Write(dllPath);

if (assembly.Name.Name != "Assembly-CSharp" || CommandLineOptions.SkipAnalysis) continue;
Expand Down

0 comments on commit edd9715

Please sign in to comment.