Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Will this work on PowerShell Core #1

Open
Jaykul opened this issue Nov 14, 2016 · 3 comments
Open

Will this work on PowerShell Core #1

Jaykul opened this issue Nov 14, 2016 · 3 comments

Comments

@Jaykul
Copy link
Owner

Jaykul commented Nov 14, 2016

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

@apetitjean
Copy link

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

Thanks

@Jaykul
Copy link
Owner Author

Jaykul commented Oct 18, 2017

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
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants