我试图从c# windows应用程序中执行ClearCanvas.Desktop.Executable exe,但得到一个错误消息:"Unable to resolve application root class ClearCanvas.Desktop.Executable - no matches“。
下面是我在C# windows应用程序中的代码,
新建args = string[] string2;args = "ClearCanvas.Desktop.Executable";
Process pro = new Process();
pro.StartInfo.FileName = @"D:\ClearCanvasWorkStation\Desktop\Executable\bin\Debug\ClearCanvas.Desktop.Executable.exe";
pro.StartInfo.Arguments = args[0];
pro.Start();exe的根类名称有问题。那么我需要将它设置为什么呢?
发布于 2012-12-13 21:29:53
试着这样做:
Process pro = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(@"D:\ClearCanvasWorkStation\Desktop\Executable\bin\Debug\ClearCanvas.Desktop.Executable.exe");
startInfo.Arguments = args[0];
Process.Start(startInfo);https://stackoverflow.com/questions/13860798
复制相似问题