Last active
December 22, 2015 17:12
-
-
Save khellang/6926c11697f40c2e8455 to your computer and use it in GitHub Desktop.
scriptcs running a self-hosted OWIN application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r Owin; | |
#r Microsoft.Owin.Hosting; | |
using Owin; | |
using Microsoft.Owin.Hosting; | |
var url = "http://localhost:8080"; | |
using (WebApp.Start(url, Configure)) | |
{ | |
Console.WriteLine("Running at {0}...", url); | |
Console.ReadLine(); | |
} | |
public static void Configure(IAppBuilder app) | |
{ | |
app.UseWelcomePage(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Microsoft.Owin.SelfHost" version="3.0.1" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just put these files in a folder and run
scriptcs script.csx
😁