Helps sqlcmd.exe automation. Using IisExpressHelper, you can start and stop web application which hosted by iisexpress.exe by code.
PM> Install-Package IisExpressHelper
static class Config
{
public const string ExecutablePath = @"C:\Program Files\IIS Express\iisexpress.EXE";
public const string AppPath = @"C:\Users\hidori\My Web Sites\My Web Application";
public const int Port = 20002;
}
var helper = new IisExpressHelper(Config.ExecutablePath, Config.AppPath, Config.Port);
helper.Start();
static class Config
{
public const string ExecutablePath = @"C:\Program Files\IIS Express\iisexpress.EXE";
public const string AppPath = @"C:\Users\hidori\My Web Sites\My Web Application";
public const int Port = 20002;
}
var helper = new IisExpressHelper(Config.ExecutablePath, Config.AppPath, Config.Port);
helper.StopAll();
See LICENSE