Skip to content

Instantly share code, notes, and snippets.

@teyc
Created February 15, 2015 10:12
Show Gist options
  • Save teyc/94541c03e08dc9193ff9 to your computer and use it in GitHub Desktop.
Save teyc/94541c03e08dc9193ff9 to your computer and use it in GitHub Desktop.
Using Nancy with CoreCLR (doesn't work)
namespace WebApplication1
{
using Nancy;
public class HomeModule: NancyModule
{
public HomeModule()
{
Get["/"] = _ => "Goodbye from Nancy";
}
}
}
{
"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"
}
}
}
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