hostasp

I created a project which enables you to self-host the ASP.NET (MVC) pipeline. You can get it on NuGet, and it’s supported on .NET 4.5 and above.

hostasp

It’s super easy to setup, from the hosting project, include references to hostasp and the main class in your web project (some HttpApplication derived class) and call:

AppHost.HostAndSetup<in T>(string virtualDir, string relativePath, int port) where T : HttpApplication

and you’ll have your webproject serving requests when it returns.

UPDATE: the source code on github

Leave a Reply

Your email address will not be published. Required fields are marked *