Jaykul / NancyPS

NancyPS was Nancy self-hosted in PowerShell, with script method handlers
MIT License
42 stars 7 forks source link

Will this work on PowerShell Core #1

Open Jaykul opened 7 years ago

Jaykul commented 7 years ago

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

apetitjean commented 6 years ago

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

Thanks

Jaykul commented 6 years ago

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();
apetitjean commented 6 years ago

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?