diff --git a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/Natasha.CSharp.Extension.HotExecutor.csproj b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/Natasha.CSharp.Extension.HotExecutor.csproj
index 23b1ea13..2d631cd2 100644
--- a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/Natasha.CSharp.Extension.HotExecutor.csproj
+++ b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/Natasha.CSharp.Extension.HotExecutor.csproj
@@ -5,7 +5,7 @@
enable
enable
true
- 动态重载开发代码.
+ 动态重载控制台代码结果.
DotNetCore.Natasha.CSharp.Extension.HotReload
升级到最新版.
Natasha;Compiler;Extension;Codecov;HotReload;
diff --git a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/ProjectDynamicProxy.cs b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/ProjectDynamicProxy.cs
index 5e803abd..cf11cb6d 100644
--- a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/ProjectDynamicProxy.cs
+++ b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/ProjectDynamicProxy.cs
@@ -449,7 +449,7 @@ private static Task HotExecute()
}
catch (Exception ex)
{
- Console.WriteLine(ex.Message);
+ Console.WriteLine($"Error during hot execution: {ex}");
}
return Task.CompletedTask;
}
diff --git a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/VSCSharpProcessor.cs b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/VSCSharpProcessor.cs
index 9be9e7d2..5532fe48 100644
--- a/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/VSCSharpProcessor.cs
+++ b/src/Natasha.CSharp/Extension/Natasha.CSharp.Extension.HotExecutor/VSCSharpProcessor.cs
@@ -107,7 +107,20 @@ public ValueTask Run()
Process[] processes = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(_outputNewExeFile));
if (processes.Length > 0)
{
- return new ValueTask(true);
+ foreach (var item in processes)
+ {
+ try
+ {
+ if (item.HasExited == false)
+ {
+ return new ValueTask(true);
+ }
+ }
+ catch
+ {
+ }
+
+ }
}
}
catch (Exception e)