diff --git a/CliWrap/Utils/WindowsSignaler.cs b/CliWrap/Utils/WindowsSignaler.cs index 891b44e1..2af85750 100644 --- a/CliWrap/Utils/WindowsSignaler.cs +++ b/CliWrap/Utils/WindowsSignaler.cs @@ -59,7 +59,7 @@ internal partial class WindowsSignaler public static WindowsSignaler Deploy() { // Signaler executable is embedded inside this library as a resource - var filePath = Path.ChangeExtension(Path.GetTempFileName(), "exe"); + var filePath = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.exe"); Assembly.GetExecutingAssembly().ExtractManifestResource("CliWrap.Signaler.exe", filePath); return new WindowsSignaler(filePath);