We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

David Cumps • 11 years ago

" My personal belief and not an official Nancy statement is that Nancy still offers many great features that MVC and WebAPI (or I should call that MVC6 now that they've merged) doesn't"

Could you ellaborate on the great features it offers which MVC 6 doesnt?

Phillip Haydon • 11 years ago

We could write a novel. But to name a few for myself. Better routing, better conneg, more lightweight modules (vs controllers) extensions via ExtensionMethods or Pipelines rather than Filters. More testable, with better test setup. Better community, and product lifecycle.

Having said that, the changes to MVC6 are very welcome. I've been saying for years that MVC/WebAPI are two frameworks designed to solve 1 problem, I'm glad they are finally merged.

Jordan McDonald • 10 years ago

Hello, I have an MVC6 asp.net vnext project I would like to convert to Nancy routes. However, that project uses IApplicationBuilder instead of IBuilder so the UseNancy method is not available. Is it required that I use an empty web project to achieve Nancy?

Jonathan Channon • 10 years ago

Please try using this - https://github.com/OmniShar...

sdotone • 11 years ago

Does this example still work with CTP2? When I create an empty web project the first thing I noticed is that I do not get a Helios dependency but a "Microsoft.AspNet.Server.IIS" instead. And for some mysterious reason nuget package manager succesfully restores all packages, including the Nancy ones but Visual Studio shows a yellow exclamation mark next to the Nancy reference.

Jonathan Channon • 11 years ago

You should be ok now with the official release of Nancy 0.23.2 not the pre-release

Bill Davidsen • 11 years ago

So, correct me if I'm wrong. Nancyfx can run almost anywhere, including OWIN-based and vNext apps, but ASP.NET MVC will only run on vNext apps and not OWIN?

Jonathan Channon • 11 years ago

I think the next version of MVC can use OWIN but the current versions can't https://github.com/aspnet/H...

Jonathan Channon • 11 years ago

That's a good question. I'm not sure how how ASP.NET MVC/API/WebPages vNext works with OWIN

JustSomeoneCorrecting • 11 years ago

Just a little side note: It's called Visual Studio "14", not Visual Studio 2014. The 14 stands for the next version number (Microsoft usually skips the 13 because of superstitious reasons).

Marcus Hammarberg • 11 years ago

It's good times being a .NET developer. And it rocks even more if you're friends with NancyFx!

Great post Jonathan!

qqryq • 11 years ago

"I also believe the guys at Microsoft are looking at developing an unmanaged code HTTP server to run on Mono". That would be amazing. While Mono is not really that much slower than the Windows CLR, it has no decent high performance web server which is it's biggest downside when it comes to hosting web pages.

David Fowler • 11 years ago

https://github.com/aspnet/K... It's going to start off as a development server but it's OSS x-plat and based on libuv so we'll see where it goes :)

TheCodeJunkie • 11 years ago

Depends on what you mean. You can use servers like nginx, with mono, without any problems. I believe Jonathan was refering to the discussion (on Twitter) about making Haywire (https://github.com/kellabyte/H... work with managed code, or possibly create something new that wraps libuv (I think Mark Rendle is spiking to get his Flux server to use libuv)