ModernKeePass icon indicating copy to clipboard operation
ModernKeePass copied to clipboard

Unable to use ModernKeePassLib from net472 assembly

Open dimitertodorov opened this issue 5 years ago • 1 comments

Getting the following error when trying to open a db with your .NET library. Is there any way we can remove the WindowsRuntime dependencies inside ModernKeePassLib?

Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

The error is thrown in this block when reading the KeyFile. I printed the error out after debugging to that point. See: ModernKeePassLib\Serialization\IOConnection.cs : 843

dimitertodorov avatar Mar 01 '19 19:03 dimitertodorov

Hi,

Yes, I would very much like to remove the Windows Runtime dependency, but for now I have not found how, as the library is compiled against .netstandard 1.2 (for Windows 8.1 compatibility). However, I'll look into how it could work with net472 framework.

wismna avatar Apr 23 '20 17:04 wismna