First of all: I have knowledge regarding the immediate solution to the problem in the title.
I know that this problem arises whenever a dll is referenced under a project being built against a different framework.
I have a project being built against .NET Framework 4.0, and I am referencing the RestSharp dll that targets the same framework.
The print below has been taken from JetBrain's DotPeek.
Dunno if this print means anything at all, but nonetheless.
The error being displayed at the Output Window is
The primary reference "RestSharp" could not be resolved because it was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
I am using VS2010.
You are having that problem because that version of the dll was built using .net framework 4.6.
What you can do to fix it is one of the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With