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,
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.
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?
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.
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.
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.
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 you
http://prntscr.com/japkle
http://prntscr.com/japkz5
please help me,
thank you.
@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.
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. Thanks for the information! Your screenshots seemed to have broken on the forum though. Can you try attaching (or linking to) them again for reference?
Post updated with links to shared images. Not sure why the Rich Text editor failed to post them properly.
I observe that discussion. I have the same issue.
Any updates on that?
@Jaryn No, I don't have an update on this yet.
@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
@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.
@newacc1 Thanks for trying that and letting me know!
Hi. While you are at it, how about fixing this for Dotnet Core 2.1 as well?
@Oskar Thanks! I'll pass that request along to the team as well.
I agree, looks like the latest package version fixes this issue!
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?
@jorge_ricardopc
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!