-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support for .net core #162
Comments
I've done some exploratory work on this which you can see at laurence79/saule/feature/net-core I sideways copied all the classes and tests from the existing projects to new netcore projects. Major changes that were required:
All of the old tests have survived with only slight changes, and they all pass. It would be sensible I think to extract out common functionality from the old and new libraries to a shared common library, probably using netstandard 2.0, although this will need the old library to target .NET Framework 4.6.1. Let me know your thoughts 😊 |
Ok, further reading shows that we could indeed target both netcore and net4xx in the same package. Would you prefer this approach? |
I've decided I also prefer that approach 😊 Latest code includes the following projects (tests not listed) Saule.Common - Shared Functionality Saule.AspNet - ASP.Net Specific classes Saule.AspNetCore - ASP.Net Core Specific Classes Saule - For Nuget Packaging |
@laurence79 awesome work! I think it makes sense for I'm guessing some of the actual logic that's currently in the formatter and delegating handler must move into How do you think we should proceed with getting this new stuff merged into the main Saule repo? Are there any blockers? I would really love to enable you, me and potential others to collaborate on this effort. |
Thanks, I agree. Perhaps if you start a new branch, say feature/net-core similar to how I have done in my fork. I'll then do a PR into that branch, then you, I, and others can fork that branch and submit PRs? |
OK, I rebased your branch on master and pushed that in this repo. I also added you as collaborator so you can work in this repo and potentially help reviewing PRs into the I hope we can get this merged into master pretty smoothly once everything seems ready. I'll try to create a more up-to-date checklist in this issue soon so we know what the status is. |
I've spent a bit of time on this in #177. Basically my thoughts are currently like this:
I'll continue in #177 to make the tests and the appveyor build pass. |
Hello Guys!!! Great library.... perfect.. It is already possible to use the new features for the .net core?? If not there is any release date?? Thanks in advance .. Paulo |
Hi Paulo, I kind of hit a dead end with the migration @laurence79 started in a separate branch. I think we need to prepare the master branch so something similar can be merged into the main releases. Because of my schedule right now I cannot really maintain two separate branches and keep feature parity. I think the work @laurence79 did informed the direction of this project in a few important ways that open up more contributions:
All of the above can and should happen in All that said, it is definitely possible to use the stuff in |
Hi @joukevandermaas, |
@SuricateCan i would love to have support for core but due to my schedule i just can't put in the time. After the experiment documented above i think the best approach is as follows:
This is basically the approach mentioned above. But i think we should do step 1 in master so new contributions work for both targets. Doing this in parallel with new prs seems impossible to manage. So if you want to take a stab at that in a pr I'm more than happy to review and merge it. |
Great, I'll work on small compatible PRs so it's easier to merge, |
I have colleagues at work who are using Saule as their json API implementation of choice. As per this thread I understand net core is still not an option. Muy question is, is that because this other implementation works for that matter https://github.com/json-api-dotnet/JsonApiDotNetCore |
@guillemsola The reason is, I don't use dotnet core at work and I don't have time to do this outside of work. It is a shitty situation but that's what it is. However, the fact that there are other implementations that are compatible is good. When I first created Saule, there were no implementations for web api. |
This is an exploratory issue. I'm assuming there will be quite some work here, so this can serve as something of a todo list.
The text was updated successfully, but these errors were encountered: