When docraptor is the only dependency in a project that uses RestSharp every works fine.
However if you happen have another dependency that also depends on RestSharp or if you wan to depend on a different version of Resharp a file load exception is thrown:
Inner Exception: FileLoadException
Inner Exception Message: Could not load file or assembly 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
StackTrace:
at DocRaptor.Client.Configuration.set_BasePath(String value)
at DocRaptor.Client.Configuration..ctor()
at DocRaptor.Client.Configuration..cctor()
From looking at DocRaptor.dll in dot peek I can see that the .DLL has a reference to RestSharp, Version=105.2.3, Culture=neutral, PublicKeyToken=null.
The problem is the PublicKeyToken=null part.
It should be PublicKeyToken=598062e77f915f75.
When docraptor is the only dependency in a project that uses RestSharp every works fine.
However if you happen have another dependency that also depends on RestSharp or if you wan to depend on a different version of Resharp a file load exception is thrown:
From looking at DocRaptor.dll in dot peek I can see that the .DLL has a reference to
RestSharp, Version=105.2.3, Culture=neutral, PublicKeyToken=null.The problem is the
PublicKeyToken=nullpart.It should be
PublicKeyToken=598062e77f915f75.