-
Notifications
You must be signed in to change notification settings - Fork 266
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
.NET Core SDK 2.0 is supported or will be? #76
Comments
Hi, Yes I definitely plan to support .NET Core 2.0, but I haven't had time to play with preview 2 yet. From previous experience I thought it might be better to wait for the final RTM, because they often changed quite a few bits very last minute and I don't want to migrate the library multiple times, but if the support for .NET Core preview 2 is much desired then I can definitely work on it and release pre-release of Giraffe on that version too. |
Good to hear it, @dustinmoris! Awesome job. I'll be watching your progress. I'm very excited about .NET Core 2.0, seems they improved a lot and fixed annoying bugs (which I suffer on some cases, like the wrong f# templates for console apps and others things). Another thing I expect is, but I don't have sure, If they will release support for Linux x86. |
Looks like aspnetcore 2.0.0 was released on nuget. I assume the cli tools will be released soon as well. Looks like there might be a bit of time between the core 2.0 change and giraffe getting updated. There are quite a few dependencies that will need to hit 2.0 (FSharp.Core, FSharp.NET.Sdk) according to the compatibility matrix found here. The way I interpret the matrix (though I could be wrong) is that all dependencies will need to be netstandard 2.0 compatible for a project to itself be 2.0 compatible. |
Thanks, weird I didn't see any official announcements of ASP.NET Core 2.0 yet, but you're right... it's been out for 3 days now! I actually also didn't think that netstandard2.0 is a new netstandard rather then a continuation of the previous one. This breaks the whole concept of netstandard, that when you target a lower version it will always work on a platform which supports a higher version. I am really confused... I don't understand why adding more APIs to netstandard2.0 stops compatibility with the old standards... anyway... given that this is the case I will indeed have to wait for all other dependencies to update first. |
Yeah I pulled down the repo and just started shoving 2.0 dependencies at it. The first thing I noticed was an f# compiler error, which is when I stopped. I think that will be the only thing that will need to be waited on. Aspnet stuff -> 2.0 though i'm not sure how much these matter Since 2.0 is a superset with no breaking changes I feel like it should be attemptable. Every time I think I understand this stuff I look into it and something like "we don't need to do semver because we feel it's a big change" happens. Anyhoo, If I have some time I'll look into the F# issue (it was an error about multiple imports of |
nice... let me know how you get on with it and if you want me to help with something, otherwise I'll just wait for the PR :D |
So I got the projects building with these changes, but am running into all sorts of weird nuget-type errors. I was at it for a while and got down pretty far the nuget/netcore rabbit hole. Decided to take a step back and see if everything worked minimally. I made a copy project with minimal dependencies to see if it would work. It seems to work, but this is just targeting netcore and I only tested the simple application (which uses some giraffe features like XmlViewEngine, Middleware, and HttpHandlers). Somewhere between these two repos is the answer lol. Figured I'd put the information here for reference. |
FYI, .NET Core 2.0 was released two days ago! |
Yeah it's pretty exciting. I made sure to install it before starting on any of the porting work. I've got the partial working solution in the copy project repo I made. It's stripped down to only the necessary bits to get giraffe working on dotnet core, but doesn't include any of the CI or net461 parts. I'll look at it a bit more today. |
I've got everything tested under netstandard2.0 Not sure if everything will work with the net46 dependency @dustinmoris thoughts? Some info: |
Additionally, I don't think I'll be able to test 461 (which should be compatible if you want to bump it) on my mac. It could be set up in docker, but I don't think I have the time to set that up at the moment. |
So I've got everything working targeting netstandard2.0/netcore2.0 here except for the samples. The And the IdentityApp has errors to do with wherever all the identity stuff got moved to, but it shouldn't be too much work to translate it over. I don't know if I'll be able to actually get to that stuff this weekend (just got booked for meetings, and then will be away from the computer), but I've checked in 90% of what needs to be done in my repo. Let me know if you'd like that PR'd into a netcore2.0 branch or something where the last 10% can be finished up. |
Hi I just created a netstandard20 branch. Feel free to submit the PR and I will merge it in there and finish the last 10% :) |
Any easy way to consume it for now? |
Hi @NinoFloris I aim to work on the 2.0 branch this weekend and hopefully have a new pre-release package ready by then which you can consume. I'll keep you posted here... |
Hey, I am going through your changes and targeting 461 all works too, so might have a new release ready tonight or tomorrow. There's one thing though which I am surprised and I would like to understand better. How come all the projects build now without |
F# compiler and targets have been rolled into the Microsoft.NET.Sdk since
2.0
…On Sat, Aug 26, 2017, 22:50 Dustin Moris Gorski ***@***.***> wrote:
Hey, I am going through your changes and targeting 461 all works too, so
might have a new release ready tonight or tomorrow. There's one things
which I am surprised and I wanted to know how it works now without
FSharp.Core and FSharp.NET.Sdk??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEBfuTneGoxr_0g3bznlZTJPHEHwsdRhks5scIUYgaJpZM4OutRC>
.
|
Nice, that's great, thanks! |
Just released all packages with the upgrade to netstandard2.0 and net461. Enjoy! |
🎉 |
Description
For now the README.md seems to point that Giraffe is design to build on top of the lastest released SDK, which for now is the SDK 1.0 and runtime 1.1. I tried, naively build the provided template with the SDK 2.0.0 preview 2 and doesn't works. So, for now, this is the expected, right?
But you have plans to support SDK 2.0.0 before release too? Or only after the official release?
Thanks anyway for that great web framework!
System/SDK version
Just for completeness sake, I'll add my current version info from
dotnet --info
The text was updated successfully, but these errors were encountered: