SalesforceSharp icon indicating copy to clipboard operation
SalesforceSharp copied to clipboard

RestSharp dependency issue

Open andiras opened this issue 6 years ago • 8 comments
trafficstars

I am having issues trying to fix RestSharp dependency when adding SalesForceSharp to my project.

When you add SalesForceSharp reference to the project, it will include the RestSharp v105.0.1 dependency. I have other library projects in the solution using the newest RestSharp v106.6.10. When I run the project I get the "Could not load file or assembly 'RestSharp, Version=105.0.1.0, " error. Checking the bin folder I have the newest RestSharp v106.6.10.

I tried to add an assemblyBinding to the project's config file to redirect the versions but it won't work because RestSharp v105 doesn't have a publicKeyToken while newest v106.6 has a publicKeyToken.

Any chance to not include the RestSharp dependency when adding SalesForceSharp reference? Any other suggestion?

Thanks

andiras avatar Sep 24 '19 21:09 andiras

The library does not serialize HAR entities back to HAR file, but the Chrome already support write the requests and responses to a HAR file:

image

giacomelli avatar Mar 19 '20 19:03 giacomelli

Thank you for your response. I need to be able to generate a HAR file from code. I am launching a Chrome browser and as the user browses around, I need to create a HAR file of the requests/responses (or even after the user is done browsing around). Selenium Webdriver does not support this and it seems no one has found a solution that isnt dirty. So I am looking to take the requests/response from the chrome events and make the HAR file myself.

vbisbest avatar Mar 19 '20 19:03 vbisbest

A feature would be great if you added a constructor for a HAREntry that takes a Chrome network event and converts it to a HAR entry. var entry = new HAREntry(request, response)

vbisbest avatar Mar 19 '20 20:03 vbisbest