diff --git a/SabreTools.Serialization/Wrappers/PortableExecutable.cs b/SabreTools.Serialization/Wrappers/PortableExecutable.cs index 6f796ed5..28e766c4 100644 --- a/SabreTools.Serialization/Wrappers/PortableExecutable.cs +++ b/SabreTools.Serialization/Wrappers/PortableExecutable.cs @@ -596,6 +596,25 @@ namespace SabreTools.Serialization.Wrappers } } + /// + /// Name as derived from the assembly manifest + /// + /// + /// If there are multiple identities included in the manifest, + /// this will only retrieve the value from the first that doesn't + /// have a null or empty name. + /// + public string? AssemblyName + { + get + { + var manifest = GetAssemblyManifest(); + var identities = manifest?.AssemblyIdentities ?? []; + var nameIdentity = Array.Find(identities, ai => !string.IsNullOrEmpty(ai?.Name)); + return nameIdentity?.Name; + } + } + /// /// Version as derived from the assembly manifest ///