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

Could not install package 'Square.Connect 2.14.0' with Framework 4.6 #105

Closed gavin1970 closed 5 years ago

gavin1970 commented 5 years ago

Is there not a .NETFramework version of this library? I'm not running .NETStandard, but instead running Framework 4.6 and get the error during Nuget Install. I had my fingers crossed as I have never written anything with .NETStandard and know little about it, but it was a no go...

Could not install package 'Square.Connect 2.14.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

gavin1970 commented 5 years ago

I just found that 4.71 has build in support for .NET Standard

https://github.com/dotnet/standard/issues/514

gavin1970 commented 5 years ago

Also found that Square.Connect 2.10.1.297 supports Framework 4.5

StephenJosey commented 5 years ago

Yeah, for the latest version we use .NET Standard 2.0 which requires .NET Framework 4.6.1 or higher. See chart here from Microsoft: https://docs.microsoft.com/en-us/dotnet/standard/net-standard

Please let me know if you have additional questions or concerns, though!