square / connect-csharp-sdk

C# client library for the Square Connect APIs
https://docs.connect.squareup.com/
Apache License 2.0
27 stars 25 forks source link

Need up to date version of RestSharp #81

Closed sheam closed 4 years ago

sheam commented 6 years ago

I get a lot of warning in my build because other packages use up to date versions of RestSharp. But Square doesn't work with recent versions of RestSharp.

sheam commented 6 years ago

System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void RestSharp.RestRequest..ctor(System.String, RestSharp.Method)'.

RobertAba commented 5 years ago

I am having the same issue. Is there a fix for this?

sheam commented 5 years ago

response_container_BBPPID{font-family: initial; font-size:initial; color: initial;} You an download my fork. ~Shea M From: notifications@github.comSent: November 18, 2018 9:26 PMTo: connect-csharp-sdk@noreply.github.comReply to: reply@reply.github.comCc: shea.martin@gmail.com; author@noreply.github.comSubject: Re: [square/connect-csharp-sdk] Need up to date version of RestSharp (#81) I am having the same issue. Is there a fix for this?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

StephenJosey commented 5 years ago

The latest version of the C# SDK works with the latest version of RestSharp. If you're not able to use 2.10.2 or later then you will need to use the fork that @sheam provided.

StephenJosey commented 5 years ago

I was wrong before, the latest version of RestSharp (106.5.4) does indeed break our SDK. For now, feel free to use Sheam's forked repo, and we'll update this once we have a better solution.

Thanks for your patience!

RobertAba commented 5 years ago

Thank you for the update. Were you able to recreate the problem or would you like some source code and screen shots?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Stephen Josey notifications@github.com Sent: Monday, November 19, 2018 6:27:16 PM To: square/connect-csharp-sdk Cc: RobertAba; Comment Subject: Re: [square/connect-csharp-sdk] Need up to date version of RestSharp (#81)

I was wrong before, the latest version of RestSharp (106.5.4) does indeed break our SDK. For now, feel free to use Sheam's forked repo, and we'll update this once we have a better solution.

Thanks for your patience!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/square/connect-csharp-sdk/issues/81#issuecomment-440091541, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ArEMKiJFd4f4JImpGqdHzqjo9KWI8LCdks5uw0xkgaJpZM4XvIrh.

gtwilliams03 commented 5 years ago

I updated our app to the latest versions of Square Connect and RestSharp and couldn't figure out why everything broke until I found this thread. Any update on when Square and RestSharp will play nice?

cppmyjob commented 5 years ago

Do you plan to update your SDK to the latest version of RestSharp?

StephenJosey commented 4 years ago

Hi all - we've migrated to a new .NET SDK: https://github.com/square/square-dotnet-sdk. This should work better for you all, but please let us know in the new repo if you do experience any issues. Thanks!