【发布时间】:2011-08-22 15:48:02
【问题描述】:
我正在尝试从 asp.net mvc 网页启动 nunit gui 应用程序(不要判断!)这是控制器代码:
[AuthorizeUser]
public class TestController : ApplicationController
{
//GET: /Test/Index/
public ActionResult Index()
{
//start process.
var process = new Process();
process.StartInfo.FileName = @"H:\Navtrak\Test\NUnit\nunit.exe";
process.StartInfo.Arguments = @"H:\Navtrak\Test\TestCases\SystemTest\bin\Debug\SystemTest.dll";
process.Start();
return View();
}
}
它实际上会启动 nunit.exe(我可以在任务管理器中看到它),但它会以静默方式启动。 nunit gui 应用程序实际上并没有出现。是否有一些我缺少的进程设置,或者这与从 ASP.NET MVC 中的 MTAThread 启动它有关?
【问题讨论】:
标签: asp.net-mvc nunit