NetStandard 2.0 support - checklist
Since Suave is moving to NetStandard 2.0 support, lets track what is still needed:
- [x] restore Suave APIs that were removed for NetStandard 1.6, but can work under NetStandard 2.0
- [x] clean-up code from
#if NETSTANDARD1_5etc... - [x] run NetCore tests for "standard TCP engine" under Linux
- [x] run NetCore tests under MacOS
- [x] use NetCore "Http.fs"
- [x] port all relevant examples to NetCore
- [x] do not use
<TargetFramework>netstandard2.0</TargetFramework>in "Examples" - now it is not possible todotnet run"Example" and "Pong". Targetnetcoreapp2.0instead.
Please add what is missing.
Cool, would you mind sending a PR for these ?
sure.. after holidays :-)
OK, I'll give it a try later today.
@alex-bogomaz I've upgraded Http.fs now
But I can't release it, because this PR/v2.3.0 of Suave has a very recent FSharp.Core constraint:
https://gist.github.com/haf/f2cf4557e4765e8cca6a18dbcaaf4a14
Can you help me?
@ademar The above is a good reason not to release the beta just yet.
PIng
Suave does not depend on Http.fs, I am not sure why is that important.
I mean; why does Suave have to depend on the very latest F#? Since Suave is a project that is used to construct libraries, too, it would be better to depend on the earliest that makes sense, e.g. F# v4.1 = nuget 4.1.18
this PR https://github.com/SuaveIO/suave/pull/685 should force version "4.1.18" of "FSharp.Core" for NetStandard 2.0 Suave nugets
#685 merged
Hi - there are 2 things that could be discussed in scope of NetStandard 2.0 support:
-
PR https://github.com/SuaveIO/suave/pull/687 - using latest "FSharp.Core" for test project. This fixes cookie serialization issues related to NetStandard 1.6 "FSharp.Core".
-
PR https://github.com/SuaveIO/suave/pull/688 - more correct reusing of same address (similar to what they did for Kestrel) + adding OSX to CI.
v5 released https://www.nuget.org/packages/Http.fs/
Minor issue on an example upgrade: SignalRDemo.netcore.fsproj compiles but fails during execution (''Could not load type 'System.Security.Cryptography.DpapiDataProtector' from assembly 'System.Security'"). AFAIK that class requires the full .NET framework.
AspnetCore.SignalR is in preview now, and seemingly relies on IApplicationBuilder. Suave.AspNetCore can likely bridge the gap, though I prefer Suave by itself.
[ Awesome job on the updgrade so far, btw, Suave is looking as pretty as ever :D ]