我正在尝试将 Walmart .NET SDK 集成到 .NET 4.61 MVC 5 应用程序中。使用 NuGet,我添加了对 BouncyCastle.Crypto 1.8.1.0 的引用。
SDK 使用 .NET Standard 1.3 并引用 BouncyCastle.Crypto 1.8.1.3:
https://github.com/walmartlabs/partnerapi_sdk_dotnet
1.8.1.3 不适用于 .NET 4.61。
{"Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null"}
=== Pre-bind state information ===
LOG: DisplayName = BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Users/example_user/Source/Workspaces/CCC/Test/example_app.Test.DataAccessUnitTest/bin/Debug
LOG: Initial PrivatePath …Run Code Online (Sandbox Code Playgroud) c# ×1