I am using RestSharp for the first time, having installed it via NuGet.
Everything works wonderfully in my development environment. I have now created an installer for my software by means of an MVS installer project. When I use the installed version, RestSharp seems to throw an error. Specifically, I have narrowed it down to a client.execute command that is processing a RestRequest and returning a RestResponse. I determined this by printing to a textfile error log. The client.execute command stops execution of the function it's called from, which just returns.
A few more details:
- RestSharp seems to be included by the installer - I see a dll in the right directory.
- I have tried running the software with admin rights, in case this was the issue.
- The installed software is, for the moment, running on the same computer where I did the development.
- One thing I am wondering, is whether MVS installer projects properly handle nuget packages.
Any ideas?
asyncinvolved at some point? Please show the code that is calling the failing RestSharp method. Have you considered ditching RestSharp? IMO the framework'sHttpClientfrom .net core has a more intuitive interface than RestSharp.