NancyPS icon indicating copy to clipboard operation
NancyPS copied to clipboard

Will this work on PowerShell Core

Open Jaykul opened this issue 9 years ago • 3 comments

NancyFx should work on .Net Standard, but their self-hosting may not (they're relying on Kestrel). Will NancyPS work with those constraints?

Jaykul avatar Nov 14 '16 15:11 Jaykul

Hi Joel, Any updates on NancyFx on .Net Core hence on NancyPS? ;-)

Thanks

apetitjean avatar Oct 18 '17 15:10 apetitjean

Short version: No. Do you actually want or need it? Would you use it?

Long version:

Based on the pace at the time when I filed this, I excepted they would finish Nancy 2.0 last March. Unfortunately, after their December release, they have stalled in pre-release -- yeah, that's right, no new pre-release in 10 months (although they've issued releases of 1.x).

Having said that, lots of people are using the current preview 2.0 and using Kestrel directly in .Net Core, so that's probably worth attempting. The code to self-host with Kestrel is something trivial like:

IWebHost webHost = new WebHostBuilder().Configure(cfg => cfg.UseOwin(x => x.UseNancy())).UseKestrel().Build();

webHost.Run();

Jaykul avatar Oct 18 '17 20:10 Jaykul

I was just curious. For now I'm struggling your module to build it successfuly but I'm in quite the same situation described in issue #2 . So I cloned the fork the guy mentioned and it seem to work. Could you please update your code Joel?

apetitjean avatar Oct 19 '17 21:10 apetitjean