breakpoint
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user