New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable WebSharper for .NET Core #790
Comments
Let's discuss the above issues here, and implementation progress on the PR #791.
After testing, no this does not cause any problems, we can happily reference the latest FSharp.Core nuget and have (almost) all our libraries be pure netstandard. |
It turns out there are some pretty big issues for running the compiler itself on .NET Core:
I believe we should keep the compiler running only on net4, at least for now, and concentrate on generating proper netstandard assemblies. We can reevaluate this when the above issues are fixed upstream. |
I started working on an ASP.NET Core here. The basics are working, both sitelets and remoting, although it is still missing some bits.
|
Compile the WebSharper libraries for .NET Standard 2.0 (is it worth targeting lower?) and the compilers for both .NET Framework and .NET Core. A lot of work is already in progress at https://github.com/tarmil/websharper/tree/netcore, I'll PR it here soon.
Some challenges:
WebSharper.Core.*
,WebSharper.Compiler.*
,WebSharper.Web
andWebSharper.Sitelets
), and replacements for these in the .NET Standard libraries:UI.WebResourceAttribute
: on netstandard, create a new attribute with the same name inSystem.Web
.UI.HtmlTextWriter
: on netstandard, create a class with the minimal useful functionality from it.HttpModule
s for RPC and Sitelets: just make them net4-exclusive.UI.Control
: on netstandard, don't make them inherit from anything.HttpContext.Current.IsDebuggingEnabled
: find a way to pass a debug boolean down from the host instead of retrieving it from theResourceContext
creation.HttpCookieCollection
: use aNameValueCollection
instead.HttpPostedFileBase
: use a custom interface instead.The text was updated successfully, but these errors were encountered: