Skip to content

Commit 8e5c440

Browse files
committed
Add .exe check for Windows
1 parent 620ec6d commit 8e5c440

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Resources/Program.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public class {X}
4646
{
4747
return path;
4848
}
49+
50+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && File.Exists(path + ".exe"))
51+
{
52+
return path;
53+
}
4954
}
5055

5156
return commandid;

0 commit comments

Comments
 (0)