You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
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
- 7 years ago
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
Greg-DB
Dropbox Staff
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.
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.
Oskar
8 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 agoDropbox StaffThanks! We'll work on reproducing that.
- pcuycs7 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.
- Greg-DB7 years agoDropbox Staff
pcuycs The API v2 .NET SDK is supposed to work with .NET Core 2.0, but there may be an issue loading it in some environments, as noted earlier in this thread.
I don't have an official update for that, but one thing you can try is manually adding Newtonsoft.Json.
If that doesn't help, please share the full error message if possible.
- Ian A.7 years agoExplorer | Level 3
The issue appears to be that the NuGet package for the Dropbox v2 API (version 4.8.0) doesn't have the proper dependencies specified for .Net Core. When viewing the package in NuGet, it appears to be dependant upon the older .Net Portable libraries:
https://www.dropbox.com/s/e2pw90auq4hpfqs/DropboxNuget.png
As a result, users targeting .Net Core 2.0 see the following warnings in their dependencies:
https://www.dropbox.com/s/kzjhrgkm2kj4avc/DropboxWarning.png
I believe the solution would be to update the NuGet package to target .Net Standard as the Portable libraries are no longer the preferred way to build cross-platform components:
https://docs.microsoft.com/en-us/dotnet/standard/net-standard
- Ian A.7 years agoExplorer | Level 3
Post updated with links to shared images. Not sure why the Rich Text editor failed to post them properly.
- Greg-DB7 years agoDropbox StaffThank you!
- Jaryn7 years agoExplorer | Level 3
I observe that discussion. I have the same issue.
- Jaryn7 years agoExplorer | Level 3
Any updates on that?
- Jaryn7 years agoExplorer | Level 3
Greg-DB How is this bug going? What is a status of that problem? In the post 'Known issues - updated June 21st see more' is nothing about that issue. Is that issue on you roadmap to fix? Do you know some workaround? Should I raise that issue on github? When can I expect fix for that defect?
Thanks, Tomasz
- newacc17 years agoExplorer | Level 3from pcuycs: @Greg sorry for feedback late, I tried manually install Newtonsoft.Json but warning is still appear.
http://prntscr.com/jyxp7b
thanks - Greg-DB7 years agoDropbox Staff
Jaryn I don't have an update or timeline for this from the team yet, nor a workaround unfortunately. This is already open with engineering so you don't need to file it on GitHub as well. The "Known Issues" list you referred to is for end-users of the Dropbox product itself, not developers using the Dropbox API. I'll follow up here once I have news on this.
- Oskar7 years agoHelpful | Level 6
Hi. While you are at it, how about fixing this for Dotnet Core 2.1 as well?
Oskar
- Oskar7 years agoHelpful | Level 6
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
- Ian A.7 years agoExplorer | Level 3
I agree, looks like the latest package version fixes this issue!
- Greg-DB7 years agoDropbox StaffApologies for the delay! Yes, this should be fixed in the latest release. Let us know if you're still seeing any issues.
- jorge_ricardopc6 years agoHelpful | Level 5
pues a mi no me funciona el GetSharedLinkMetadataAsync, me dice que no encuentra el link compartido, y el archivo si esta compartido, en seguida intento crear el link para compartir con CreateSharedLinkWithSettingsAsync y me dice que ya existe uno, es un ciclo sin fin que no sirve. No se si a alguien más le pasa o es un problema de la cuenta gratuita?
- Greg-DB6 years agoDropbox Staff
Parece que tienes una pregunta diferente a la que se estaba discutiendo en este viejo hilo. Abra un nuevo hilo con los detalles de su pregunta (por ejemplo, código, salida de error, etc.) para que podamos ayudarlo. ¡Gracias!
---
Por favor, disculpe nuestras traducciones. Nuestras traducciones fueron creadas usando un traductor en línea. Nos gustaría apoyar todos los idiomas, pero actualmente no estamos equipados para hacerlo. Aquí está la versión en inglés:
---
Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:---
It sounds like you have a different question than what was being discussed on this old thread. Please open a new thread with the details of your question (e.g., code, error output, etc.) so we can help. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
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!