Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

Nicodk's avatar
Nicodk
New member | Level 2
8 years ago

.NET 4.0 Reference could not be resolved

Hi there

 

I am currently trying to integrate Dropbox into a bigger system running .NET 4.0, the issue is that when I install the Dropbox.Net NuGet into my class library and rebuild the solution, I receive the following errors, from another library that references it.

 

Severity Code Description Project File Line Suppression State
Warning The primary reference "location/DropboxProject.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "location/DropboxProject.dll" or retarget your application to a framework version which contains "System.Runtime, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Easy2u.PCS

 

Severity Code Description Project File Line Suppression State
Warning The primary reference "location/DropboxProject.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "location/DropboxProject.dll" or retarget your application to a framework version which contains "System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Easy2u.PCS

 

Severity Code Description Project File Line Suppression State
Warning The primary reference "location/DropboxProject.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "location/DropboxProject.dll" or retarget your application to a framework version which contains "System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Easy2u.PCS

 

I figured it has to do with the fact that the Class Library that uses my Dropbox Project, is using older versions of those 3 dependencies, is there a way to solve this issue?

 

Thank you for the help.

4 Replies

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,001 PostsLatest Activity: 13 hours ago
384 Following

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!