Skip to content

AssemblyNameInfo.FullName does not include public key #102051

Closed
@jkotas

Description

@jkotas

Repro

using System.Reflection;
using System.Reflection.Metadata;

var mscorlib = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKey=00000000000000000400000000000000";

Console.WriteLine(new AssemblyName(mscorlib).FullName);
Console.WriteLine(AssemblyNameInfo.Parse(mscorlib).FullName);

Actual result

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
mscorlib, Version=4.0.0.0, Culture=neutral

Expected result

PublicKey (or PublicKeyToken) is included in AssemblyNameInfo.FullName

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions