Skip to content

hidori/IisExpressHelper

Repository files navigation

IisExpressHelper

Helps sqlcmd.exe automation. Using IisExpressHelper, you can start and stop web application which hosted by iisexpress.exe by code.

Installation

PM> Install-Package IisExpressHelper

Usage

Start IIS Express

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();

Stop IIS Express

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();

License


See LICENSE

About

IIS Express Helper for unit testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages