From 5f49b56c3d6a6427ceb0738479de0bd02f7b0c8f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 8 Dec 2022 14:59:15 -0800 Subject: [PATCH] Add a couple more named version fields --- BurnOutSharp.Wrappers/PortableExecutable.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BurnOutSharp.Wrappers/PortableExecutable.cs b/BurnOutSharp.Wrappers/PortableExecutable.cs index 13bde093..02d3ccb8 100644 --- a/BurnOutSharp.Wrappers/PortableExecutable.cs +++ b/BurnOutSharp.Wrappers/PortableExecutable.cs @@ -527,6 +527,11 @@ namespace BurnOutSharp.Wrappers /// public string CompanyName => GetVersionInfoString("CompanyName"); + /// + /// "Debug version" + /// + public string DebugVersion => GetVersionInfoString("DebugVersion"); + /// /// File description to be presented to users. This string may be displayed in a /// list box when the user is choosing files to install—for example, "Keyboard @@ -597,7 +602,7 @@ namespace BurnOutSharp.Wrappers /// M250E computers". This string should be present only if VS_FF_SPECIALBUILD is /// specified in the fileflags parameter of the root block. /// - public string SpecialBuild => GetVersionInfoString(key: "SpecialBuild"); + public string SpecialBuild => GetVersionInfoString(key: "SpecialBuild") ?? GetVersionInfoString(key: "Special Build"); /// /// "Trade name"