Skip to content

Commit

Permalink
Add System.Private.CoreLib 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Washi1337 committed Jul 1, 2023
1 parent 4fb99ca commit 8a4776a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/AsmResolver.DotNet/KnownCorLibs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ public static class KnownCorLibs
0x7C, 0xEC, 0x85, 0xD7, 0xBE, 0xA7, 0x79, 0x8E
});

/// <summary>
/// References System.Private.CoreLib.dll, Version=8.0.0.0, PublicKeyToken=7CEC85D7BEA7798E. This is used by .NET
/// assemblies targeting .NET 8.0.
/// </summary>
public static readonly AssemblyReference SystemPrivateCoreLib_v8_0_0_0 = new("System.Private.CoreLib",
new Version(7, 0, 0, 0), false, new byte[]
{
0x7C, 0xEC, 0x85, 0xD7, 0xBE, 0xA7, 0x79, 0x8E
});

/// <summary>
/// References System.Runtime.dll, Version=4.0.0.0, PublicKeyToken=B03F5F7F11D50A3A. This is used by .NET
/// assemblies targeting .NET standard 1.0 and 1.1.
Expand Down Expand Up @@ -232,7 +242,8 @@ static KnownCorLibs()
SystemPrivateCoreLib_v4_0_0_0,
SystemPrivateCoreLib_v5_0_0_0,
SystemPrivateCoreLib_v6_0_0_0,
SystemPrivateCoreLib_v7_0_0_0
SystemPrivateCoreLib_v7_0_0_0,
SystemPrivateCoreLib_v8_0_0_0,
};

KnownCorLibNames = new HashSet<string>(KnownCorLibReferences.Select(r => r.Name!.Value));
Expand Down

0 comments on commit 8a4776a

Please sign in to comment.