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
Dan C.10
8 years agoExplorer | Level 4
Exception when using ASP.NET Core
I'm trying to use the Dropbox API with an ASP.NET Core application (v1.1.0). It compiles and resolves all the dependencies when doing a "dotnet restore", but when I call one of the Dropbox API method...
Dan C.10
Explorer | Level 4
Hi. Thank you for your very quick reply!
I've found the issue. It was because when I created the project, it had this in the project.json
"frameworks": { "netstandard1.6": { "imports": "dnxcore50" } }
So that was saying that my assembly targets netstandard 1.6, but the 'imports' bit is telling it to lie to the compiler saying that dependencies targeting dnxcore50 will work. Hence why it compiled, but fell over at runtime.
I've fixed the issue by just targeting dnxcore50 instead.
Dan C.10
8 years agoExplorer | Level 4
It would be great if Dropbox API targetted the latest dotnet standard though :)
- Qiming Y.8 years agoDropbox StaffYou can still have your library target .NET standard. The SDK package contains a PCL version which is compatible with .NET standard. What you need to do is change imports from dnxcore50 to portable-net45+win8 and add Microsoft.NETCore.Portable.Compatibility as dependency.
- Dan C.108 years agoExplorer | Level 4
Brilliant! This works perfectly. Thanks a lot for your help! :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 8 hours agoIf 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!