Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从electron应用程序内启动进程(触发.net核心DLL)_C#_.net Core_Electron - Fatal编程技术网

C# 从electron应用程序内启动进程(触发.net核心DLL)

C# 从electron应用程序内启动进程(触发.net核心DLL),c#,.net-core,electron,C#,.net Core,Electron,在我的解决方案中,我有一个electron应用程序和一个控制台应用程序(.Net core DLL),通过使用electron应用程序,我想触发该DLL并向其传递一些参数,然后等待其响应。下面是我的代码片段,但是,它不会触发DLL ProcessStartInfo start = new ProcessStartInfo("dotnet"); start.Arguments = $"MyLibrary.dll" start.CreateNoWind

在我的解决方案中,我有一个electron应用程序和一个控制台应用程序(.Net core DLL),通过使用electron应用程序,我想触发该DLL并向其传递一些参数,然后等待其响应。下面是我的代码片段,但是,它不会触发DLL

 ProcessStartInfo start = new ProcessStartInfo("dotnet"); 
 start.Arguments = $"MyLibrary.dll"
 start.CreateNoWindow = false;
 start.RedirectStandardOutput = false;
 start.RedirectStandardError = false; 
 var process = Process.Start(start);

提前感谢。

是否
处理.Start
引发异常?否,它不会引发任何异常。如果添加
处理.WaitForExit()在起始行之后?它是不是直接掉下来了?尝试执行DLL的绝对路径
start.Arguments=“\”c:\\files\\thepath\\MyLibrary.DLL\”
是否
Process.Start
引发异常?否,它不会引发任何异常。如果添加
Process.WaitForExit()在起始行之后?它是不是直接掉下来了?尝试执行DLL的绝对路径
start.Arguments=“\”c:\\files\\thepath\\MyLibrary.DLL\”