'Cannot install PayPalCheckoutSDK Nuget Package
I am really struggling to install the PayPalCheckoutSDK Nuget package.
On the GitHub https://github.com/paypal/Checkout-NET-SDK It says the prerequisites are:
- .NET 4.6.1 or later
- An environment which supports TLS 1.2 (see the TLS-update site for more information)
- PayPalHttp 1.0.0
So I also just tried installing PayPalHttp and got the same error.
To ensure I wasn't clashing with anything existing I have created a brand new completely empty project that targets 4.7 from the offset. Both packages still give me the same error.
Could not install package [either]. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7', 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.
I'm at a complete loss as I've removed anything else from the equation and I cannot work out what I'm missing. Any help would be greatly appreciated!
Solution 1:[1]
I has the same issue trying to install PayPalHTTp and PayPalSDK on Visual Studio 2015. My Fix was opening the project in Visual Studio 2019 , Installing the packages and then reverting back to Visual Studio 2015.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sagi |