Sancho Panza
Sancho Panza

Reputation: 759

WPF Designer unable to find SQLite.Interop.dll

In my WPF application a seperate class-library is used to persist session-data to a SQLite-database. I ran into the well known problem of the SQLite.Interop.dll not being found, after adding the class-library-dll to my WPF-project. I manually added x86/x64-dlls to the project and installed the SQLite nuget-packages to the wpf-project as well, the application is running fine now.

However the VS WPF-Designer is still unable to display views that utilize my class-library and crashes with "SQLite.Interop.dll not found". This obviously 'limits' my ability to change the design of the views. Any ideas on how to provide the designer with the desired dll??

This is not a duplicate of the numerous posts about the SQLite.Interop-dependency, as my problem is solely related to the WPF-designer in Visual-Studio.

Upvotes: 3

Views: 411

Answers (1)

progdog
progdog

Reputation: 11

To fix this problem, copy the x86 version of SQLite.Interop.dll to the Visual Studio IDE folder. For a default installation of Visual Studio 2019 Community, the path is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE".

Upvotes: 1

Related Questions