-
Notifications
You must be signed in to change notification settings - Fork 840
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 DNX Core #60
Comments
This is something on our radar |
+1 For that... |
Yes please! +100 👍 |
+1 |
+1 Willing to help if needed |
+1 and also willing to help. |
My interest is in building an ASP.NET 5 app that can be coded and run on a Mac with VS Code, which would require being able to run and build the app on the .net core 5 platform. Would likely publish the app to Linux running on Azure. I suppose I could just use the REST interface instead of the package, but that doesn't sound as fun! |
I agree with @cwiederspan. Cross-platform compatibility would be nice. I am using the current .NET SDK in a MVC 6 API App, but as we know it can only run on a windows server. This is also off topic a little... but a connected service (like table storage, sql etc.) for DocDB would be amazing. I know there must be some work there though!. In my own opinion, using the rest interface directly gives me an uneasy feeling for some odd reason. You can't use all the nice magic of the API and what about layered security? I could be missing some thing though. Anyway have a great weekend everyone. |
Interesting. I had always assumed that the client library was just a nice wrapper on top of the REST calls to the back-end service using HttpClient, similar to the way that Azure Storage library works (I think). I believe that that library is now able to use .net core 5, although I haven't tried it for myself yet. If only we could see the DocumentDB library in github ;-). |
Ryan, out of curiosity, is it your crew that built the SDK for Javascript, too? Does it have feature parity with the .NET SDK? I'm wondering if we could take that JS code and rewrite it in .NET with .net core 5 "compliance"? Or am I over simplifying it? I guess that's my way for fishing for your thoughts on what kind of gotchas might be hiding out there...? |
The .NET library has a custom written Tcp based protocol in addition to HTTP. It also has two modes of connecting, Gateway and Direct. And a few other things like a query parser etc. The other SDKs, like Node, Java, Python etc. don't have this yet. They are just Gateway over HTTP. |
Thanks - good information. That explains the native code interop dependencies. I'll take a look and see if I think I could do a good enough job to make something similar to the JS version that would work with .net core 5. Maybe get some help for your team and or other interested folks...? |
I'd love to help with that. Count me in.
|
Hi Ryan, Our of curiosity, of the other SDK's (Node, Python etc) is one considered Cheers Ken On Sat, Nov 21, 2015 at 10:52 AM, Ryan CrawCour notifications@github.com
|
I wouldn't say any are more complete. The node.js SDK is by far the more popular outside of the the .NET SDK. |
We're discuss this dnxcore50 support next week and make a call when we'll add support. Stay tuned. |
So just to add another data point - yes, the ability to build cross platform in .net would be really useful. My own workflow would be dev on Mac and deploy on Azure. I've started using ASP.NET 5 and have begun playing around with beta 8 of the storage API. Would be really cool to be able to do the same with DocumentDB as I'd have a neat stack to build on then. See what happens when you let the cross platform genie out of the bottle? :-) |
@jtbennett and anybody else interested... I've created a nearly-empty repository here - https://github.com/azure-community/azure-documentdb-dotnetcore - with a quick skeletal of an unimplemented object hierarchy based on browsing the existing SDK. That said, it's probably pretty useless in its current form, but maybe a starting point...? Anyway, I can certainly tell you that I'm fairly new to the OSS scene, at least in terms of setting up a project from scratch, so I'm happy to handoff the repository to anybody that's got more experience in that department. I'm also not entirely sure whether we'd be better off trying to work backwards from the existing .NET SDK, or trying to "port" the JavaScript or NodeJS SDK over to dotnetcore, so would love to get anybody's thoughts there. |
I wouldn't use the JavaScript SDK. The node.js is a better start. |
Well, given Ryan C was mentioning that MS was going to discuss if they'd do No? Anyway, I'm interested :) On Tue, Nov 24, 2015 at 8:26 AM, Chris Wiederspan notifications@github.com
|
We're doing some tests now to see how much of the current SDK breaks on .NET Core. You might want to wait a few days until we know the extent of the changes needed. I'd hate this to be throw away effort. |
Absolutely agree about waiting a few days or more - plenty busy without venturing down this path. |
When will you support? |
+1 |
Sorry for delay in getting back to everyone on the thread; |
Thanks for the update
|
👍 |
👍 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
This should be implement as Entity Framework Core middleware. |
Holy moly surprised to see this doesn't exist already, +1 |
Wouldn't it be better to have the client library be a .NET Standard library? That way it could be used from almost any platform? |
+1 |
@MiddleTommy I could not imagine they would do it another way :) |
+1 |
unimaginable no support for the document dB, |
+1. It is really unimaginable that Microsoft Azure DocumentDB doesn't support .Net Core. |
1 similar comment
+1. It is really unimaginable that Microsoft Azure DocumentDB doesn't support .Net Core. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 Looking forward to this. |
Has anyone tried using MondoDB.Driver 2.3.0-rc1 along with mongodb protocol support for DocumentDB: https://azure.microsoft.com/en-us/documentation/articles/documentdb-connect-mongodb-account/ This, theoretically, will allow CoreCLR to work with Azure DocumentDB (and will also allow migration to other platforms where MongoDB is supported) -- not to mention local testing on non-Windows platforms where the Storage Emulator is not available. Just a thought -- I'll be diving into this as a solution soon. |
@dmccaffery while this is definitely a workaround, this does not provide a migration path from net451 nor supports for the new binary protocol. This is also quite experimental as well. |
Agreed; definitely not meant as a long-term solution -- if you're starting from square one, though, it is an interesting alternative. Mainly because it enables migration to other services and cloud environments where MongoDb can run (hypothetically). |
Btw, I've tweeted about it to the Azure DocumentDB team and they told me they are working on it, and that they will release it before the end of the year. |
@MoaidHathot it was supposed to be Q1 then Q2 now before the end of the year... |
According to this recent .NET Blog post:
The next Connect event is taking place November 16-18, so it's basically around the corner :) |
Please add a DNX Core version of Microsoft.Azure.DocumentDB. (If you add the code here, I'll help do the work!)
The text was updated successfully, but these errors were encountered: