Created
February 15, 2015 10:12
-
-
Save teyc/94541c03e08dc9193ff9 to your computer and use it in GitHub Desktop.
Using Nancy with CoreCLR (doesn't work)
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
namespace WebApplication1 | |
{ | |
using Nancy; | |
public class HomeModule: NancyModule | |
{ | |
public HomeModule() | |
{ | |
Get["/"] = _ => "Goodbye from Nancy"; | |
} | |
} | |
} |
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
{ | |
"commands": { | |
"web": "Microsoft.AspNet.Hosting --server kestrel" | |
}, | |
"dependencies": { | |
"Kestrel": "1.0.0-beta", | |
"Nancy": "1.0.0.0", | |
"Microsoft.AspNet.Owin": "1.0.0-beta", | |
"Microsoft.AspNet.Hosting": "1.0.0-beta", | |
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta" | |
}, | |
"frameworks": { | |
"aspnetcore50": { | |
/* No idea what I actually need here */ | |
"System.Collections": "4.0.0.0", | |
"System.Collections.Concurrent": "4.0.0.0", | |
"System.ComponentModel": "4.0.0.0", | |
"System.Linq": "4.0.0.0", | |
"System.Reflection": "4.0.10.0", | |
"System.Runtime": "4.0.0.0", | |
"System.Runtime.InteropServices": "4.0.10.0", | |
"System.Threading": "4.0.0.0", | |
"System.Threading.Tasks": "4.0.0.0" | |
} | |
} | |
} |
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
using Microsoft.AspNet.Builder; | |
using Nancy.Owin; | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder config) { | |
config.UseOwin(x=> x.UseNancy()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment