1
Vote

command line syntax passed to webdev.webserver40.exe is incorrect

description

Hi.
 
Thank you for prism 4.0.
 
v4\AcceptanceTestLibrary\AcceptanceTestLibrary\Common\FixtureBase.cs
 
public virtual void StartWebServer(string portNumber, string hostPath)
    {
        const string WEBSERVERPATH = @"\Common Files\microsoft shared\DevServer\10.0\webdev.webserver40.exe";
 
        appProcess = Process.Start(
                Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + WEBSERVERPATH,
                "/port" + portNumber + " /path:\"" + hostPath + "\"");
    }
 
"/port" should be "/port:"
 
Thank you.

comments

icnocop wrote Jul 3, 2011 at 10:46 AM

It might also be a good idea to use string.Format(...) for the command line parameter to make it a little more readable\manageable.