public void Start(string configTransform = null) { ProcessStartInfo webHostStartInfo; if (configTransform == null) { webHostStartInfo = InitializeIisExpress(_application); } else { var siteDeployer = new MsBuildDeployer(_application.Location); var deployPath = Path.Combine(Environment.CurrentDirectory, "TestSite2"); siteDeployer.Deploy(configTransform, deployPath); webHostStartInfo = InitializeIisExpress(_application, deployPath); } _webHostProcess = Process.Start(webHostStartInfo); _webHostProcess.TieLifecycleToParentProcess(); }
public void Start() { var webHostStartInfo = ProcessStartInfo(_application); _webHostProcess = Process.Start(webHostStartInfo); _webHostProcess.TieLifecycleToParentProcess(); }