SalesforceSharp
SalesforceSharp copied to clipboard
RestSharp dependency issue
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
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:

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.
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)