WinSCP Version 5.15.2 (Build 9590) Error Mismatched errors with WinSCPnet.dll
WinSCP Version 5.15.2 (Build 9590). When I run a powershell script and get to my
Add-Type -Path "C:\Program Files\WinSCP\WinSCPnet.dll" I get an Error: Could not load file or assembly 'file:///C::\Program Files\WinSCP\WinSCPnet.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. The WinSCPnet.dll is dated 5/29/2019.
When use a different WinSCPnet.dll dated 1/8/2019 the error changes to: Exception calling "Open" with "1" argument(s): "The version of C:\Program Files\WinSCP\winscp.exe (184.108.40.206) does not match version of this assembly C:\Program Files\WinSCP\WinSCPnet.dll (220.127.116.11)."
How do I find the WinSCPnet.dll that works with winscp.exe (18.104.22.168)?