We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Oskar
8 years agoHelpful | Level 6
Net Core 2.0 Compability?
Hi,
Is the Dropbox API 2 compatible with the NetCore 2.0? Specifically ASP.Net 2.0?
Oskar
After a quick trial run, it appears to me that the 4.9.0 release solves the dependency warnings, works with NetCore 2.1 and also works in non-windows environments. Great! You should make more noise about this.
Big thanks,
Oskar
29 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
Hi Oskar, the official Dropbox API v2 .NET SDK supports .NET Standard 1.1+, so it should work on .NET Core 2.0. (Note that there's a small configuration note in the documentation you may need to follow though.) Please try it out and let us know if you run in to any issues.
- Oskar8 years agoHelpful | Level 6
Hi,
I tried it and it on an empty ASP.Net Core 2.0 project and it did not work. There was some kind of error message of 4.3.0 not being compatible and then "falling back".
It compiles, but does not work.
This is why I ask. I do not have the resources to do further research on this if it doesn't seem to work in the first place - that is why I asked. Have you yourself tried?
Oskar
- Greg-DB8 years ago
Dropbox Community Moderator
I haven't tried ASP.NET Core 2.0 in particular. Can you share the error message you got? Thanks in advance! - Oskar8 years agoHelpful | Level 6
Hi,
Unfortunately, I can't - I rolled back my project already and did not take any screen shots.
But, it is very simple:
1) Just create any empty ASP.Net Core project
2) Upgrade it to v 2.0
3) Add Dropbox.API 4.3.0 via NuGet manager.
You will get a yellow triangle in your dependencies section in Visual Studio saying something about incompatibility and falling back.
The project will build, but any attempt to use the API will fail in a runtime exception.
Oskar
- Greg-DB8 years ago
Dropbox Community Moderator
Thanks! We'll look into it. - Oskar8 years agoHelpful | Level 6
I need to specify, that I only use two methods:
-GetSharedLinkMetadataAsync
-GetSharedLinkFileAsync
So, my claim "any attempt..." might be a slight exaggeration. But these calls failed at least for me.
Oskar
- Greg-DB8 years ago
Dropbox Community Moderator
There's a server issue that can cause GetSharedLinkFileAsync in particular to fail right now, so that may not be related to the SDK itself.
Also, there are a number of possible expected exceptions from GetSharedLinkMetadataAsync, e.g., if the supplied link is not found, etc.
That being the case, I would recommend testing with something simpler, such as Users.GetCurrentAccountAsync.
I just tried creating a .NET Core 2.0 project in Visual Studio 7.1 for Mac on macOS 10.12.6, and the Dropbox.API library v4.3.0 worked fine with Users.GetCurrentAccountAsync. I also didn't get the yellow triangle warning you mentioned. If are you seeing any issues with the SDK itself, e.g., where even GetCurrentAccountAsync won't work, please let us know what version of Visual Studio and system you're using so we can try to reproduce it. - Oskar8 years agoHelpful | Level 6
Hi Greg,
I am the one who reported the problem with GetSharedLinkFileAsync so I am acutely aware of the problems with the API that has been going on for over a week now. This is why I am desperately seeking other options, among them upgrading to NetCore 2.0.
I am using the latest version of Visual Studio 2017 for Windows, version 15.3.2.
The exception is low level and about not being able to find relevant assemblies. I.e. the API package doesn't even load.
Oskar
- Greg-DB8 years ago
Dropbox Community Moderator
Thanks! We'll work on reproducing that. - pcuycs8 years agoExplorer | Level 3
hi @Greg D,
i'm create new console project using .net core 2.0 and flow to https://github.com/dropbox/dropbox-sdk-dotnet#support-platforms to install .net core for Dropbox API but i get yellow triangle in dependencies section.Is the Dropbox API 2 current version compatible with the NetCore 2.0 ?
i attached 2 picture for youplease help me,
thank you.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 23 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!