Skip to content

Commit 72e534a

Browse files
committed
Fix GetExeName() and bump version to 7.0.0-beta.3
Fix GetExeName() to correctly strip .exe extension on all platforms instead of using GetFileNameWithoutExtension which strips any extension. Bump NuGet package version to 7.0.0-beta.3. Made-with: Cursor
1 parent af3e00c commit 72e534a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

barraider-sdtools/Tools/Tools.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,12 @@ internal static string GetExeName()
516516
{
517517
try
518518
{
519-
return System.IO.Path.GetFileNameWithoutExtension(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
519+
string fileName = System.IO.Path.GetFileName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
520+
if (fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
521+
{
522+
fileName = fileName.Substring(0, fileName.Length - 4);
523+
}
524+
return fileName;
520525
}
521526
catch (Exception ex)
522527
{

barraider-sdtools/barraider-sdtools.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ Feel free to contact me for more information: https://barraider.com</Description
1717
<PackageIconUrl></PackageIconUrl>
1818
<AssemblyVersion>7.0.0.0</AssemblyVersion>
1919
<FileVersion>7.0.0.0</FileVersion>
20-
<Version>7.0.0-beta.2</Version>
21-
<PackageReleaseNotes>7.0.0-beta.2 - Replace net9.0 (STS, EOL May 2026) with net10.0 (LTS). Simplify csproj. Targets: netstandard2.0/net48/net8.0/net10.0.
22-
7.0.0-beta.1 - Major migration: netstandard2.0/net48/net8.0 multi-targeting, SkiaSharp cross-platform graphics, System.Drawing APIs marked [Obsolete] with SkiaSharp replacements.
23-
NOTE: This is a prerelease. See docs/MIGRATION.md for upgrade guidance.</PackageReleaseNotes>
20+
<Version>7.0.0-beta.3</Version>
21+
<PackageReleaseNotes>7.0.0-beta.3 - Major migration: netstandard2.0/net48/net8.0/net10.0 (LTS) multi-targeting, SkiaSharp cross-platform graphics, System.Drawing APIs marked [Obsolete] with SkiaSharp replacements. See migration instructions in the Github Readme.</PackageReleaseNotes>
2422
<RootNamespace>BarRaider.SdTools</RootNamespace>
2523
<AssemblyName>StreamDeckTools</AssemblyName>
2624
<PackageIcon>BRLogo_460.png</PackageIcon>

0 commit comments

Comments
 (0)