suave icon indicating copy to clipboard operation
suave copied to clipboard

NetStandard 2.0 support - checklist

Open alex-bogomaz opened this issue 8 years ago • 13 comments

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_5 etc...
  • [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 to dotnet run "Example" and "Pong". Target netcoreapp2.0 instead.

Please add what is missing.

alex-bogomaz avatar Dec 27 '17 16:12 alex-bogomaz

Cool, would you mind sending a PR for these ?

ademar avatar Dec 27 '17 16:12 ademar

sure.. after holidays :-)

alex-bogomaz avatar Dec 27 '17 16:12 alex-bogomaz

OK, I'll give it a try later today.

ademar avatar Dec 27 '17 17:12 ademar

@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?

haf avatar Jan 10 '18 15:01 haf

@ademar The above is a good reason not to release the beta just yet.

haf avatar Jan 10 '18 19:01 haf

PIng

haf avatar Jan 12 '18 12:01 haf

Suave does not depend on Http.fs, I am not sure why is that important.

ademar avatar Jan 12 '18 12:01 ademar

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

haf avatar Jan 12 '18 14:01 haf

this PR https://github.com/SuaveIO/suave/pull/685 should force version "4.1.18" of "FSharp.Core" for NetStandard 2.0 Suave nugets

alex-bogomaz avatar Jan 15 '18 10:01 alex-bogomaz

#685 merged

haf avatar Jan 21 '18 12:01 haf

Hi - there are 2 things that could be discussed in scope of NetStandard 2.0 support:

  1. 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".

  2. 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.

alex-bogomaz avatar Feb 02 '18 12:02 alex-bogomaz

v5 released https://www.nuget.org/packages/Http.fs/

haf avatar Feb 05 '18 09:02 haf

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 ]

aaron-comyn avatar Mar 28 '18 09:03 aaron-comyn