diff --git a/MedallionShell/MedallionShell.csproj b/MedallionShell/MedallionShell.csproj
index dd25b4b..792086f 100644
--- a/MedallionShell/MedallionShell.csproj
+++ b/MedallionShell/MedallionShell.csproj
@@ -6,8 +6,8 @@
Medallion.Shell
- 1.6.0
- 1.6.0.0
+ 1.6.1-alpha01
+ 1.6.1.0
1.6.0.0
Michael Adelson
A lightweight, cross-platform library that simplifies working with processes in .NET
@@ -38,7 +38,7 @@
True
-
+
diff --git a/MedallionShell/Signals/WindowsProcessSignaler.cs b/MedallionShell/Signals/WindowsProcessSignaler.cs
index f91729a..73b3528 100644
--- a/MedallionShell/Signals/WindowsProcessSignaler.cs
+++ b/MedallionShell/Signals/WindowsProcessSignaler.cs
@@ -112,11 +112,9 @@ private static async Task SendSignalFromCurrentProcess(int processId, Nati
private static async Task DeploySignalerExeAsync()
{
- var tempDirectoryName = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
- Directory.CreateDirectory(tempDirectoryName);
- const string SignalerExeName = "MedallionShell.ProcessSignaler.exe";
- var exePath = Path.Combine(tempDirectoryName, SignalerExeName);
- using (var resourceStream = Helpers.GetMedallionShellAssembly().GetManifestResourceStream(SignalerExeName))
+ const string SignalerExeNameWithoutExtension = "MedallionShell.ProcessSignaler";
+ var exePath = Path.Combine(Path.GetTempPath(), $"{SignalerExeNameWithoutExtension}_{Guid.NewGuid():N}.exe");
+ using (var resourceStream = Helpers.GetMedallionShellAssembly().GetManifestResourceStream(SignalerExeNameWithoutExtension + ".exe"))
using (var fileStream = new FileStream(exePath, FileMode.CreateNew, FileAccess.Write, FileShare.None, Constants.ByteBufferSize, useAsync: true))
{
await resourceStream.CopyToAsync(fileStream).ConfigureAwait(false);
@@ -142,7 +140,6 @@ public void Dispose()
if (toDelete != null)
{
File.Delete(toDelete);
- Directory.Delete(System.IO.Path.GetDirectoryName(toDelete));
}
}
}