Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RestSharp - could not be found

Tags:

c#

restsharp

I have looked at other questions posted about this but nothing seems to answer my question/problem. Hopefully because my question/problem seems like a simple fix if anything.

I installed RestSharp using nuget.

using RestSharp;
using RestSharp.Authenticators;

are underlined with blue

private IRestClient restClient;

is also underlined.

If i restart my IDE, there is no error. I hit build to compile my object.. and all the RestSharp references "disappear." I try to add the reference manually using the RestSharp.dll and it barks at me telling me that there is already a reference to RestSharp

Any other suggestions?

like image 364
DWolf Avatar asked Oct 25 '25 20:10

DWolf


1 Answers

Change the Framework from anything less than 4 up to 4 and recompile.

restsharp was developed and compiled in 4.0

like image 143
DWolf Avatar answered Oct 28 '25 10:10

DWolf