breakpoint

This commit is contained in:
CortexCore
2025-01-12 11:57:37 +08:00
parent 01b3d1be43
commit 000a079985
4 changed files with 104 additions and 92 deletions

View File

@@ -66,12 +66,6 @@ namespace BITKit
{
var outputPath = PathHelper.GetTempFilePath();
//DI.TryGet<IUXWaiting>(out var waiting);
//todo
IUXWaiting waiting = null;
var handle = waiting?.Get();
handle?.SetMessage("正在编译");
try
{
if (Installed is false)
@@ -125,7 +119,7 @@ namespace BITKit
// CreateNoWindow = false,
// };
var StartInfo = new ProcessStartInfo
var startInfo = new ProcessStartInfo
{
//FileName = MCSPath,
FileName = "dotnet",
@@ -142,7 +136,7 @@ namespace BITKit
var process = new Process()
{
StartInfo = StartInfo,
StartInfo = startInfo,
};
var reportBuilder = new StringBuilder();
process.OutputDataReceived += (sender, args) =>
@@ -184,14 +178,10 @@ namespace BITKit
BIT4Log.Log<BITSharp>(reportBuilder);
waiting?.Release(handle);
return Assembly.Load(bytes);
}
catch (Exception e)
{
waiting?.Release(handle);
throw new Exception($"编译失败:{e}");
}