简体   繁体   English

无法“始终复制”SQLite.Interop.dll Visual Studio 2017 社区

[英]Couldn't 'Copy Always' SQLite.Interop.dll Visual Studio 2017 community

I am working on a WPF using C# project in Visual Studion 2017 and am able to run the project in development mode perfectly.我正在使用 Visual Studion 2017 中的 C# 项目处理 WPF,并且能够在开发模式下完美地运行该项目。 But after I publish the project I got the error Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found.(Exception from HRESULT: 0x8007007E).但是在我发布项目后,我收到错误无法加载 DLL 'SQLite.Interop.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)。

I searched a lot but couldn't find the solution.我搜索了很多,但找不到解决方案。 Many a place people mentioned that to place SQLite.Interop.dll in Debug folder but in my application those dll of x64 and x86 already exists in Debug folder but the next step they said were to change file properties to许多人提到将 SQLite.Interop.dll 放在 Debug 文件夹中,但在我的应用程序中,那些 x64 和 x86 的 dll 已经存在于 Debug 文件夹中,但他们说下一步是将文件属性更改为

Build Action: None and构建操作:无和

Copy to output directory : Copy always复制到输出目录:始终复制

But the problem is I could not find these options when I right click on SQLite.Interop.dll.但问题是当我右键单击 SQLite.Interop.dll 时我找不到这些选项。 Please help me in this because I am stuck in this right from bunch of hours.请帮我解决这个问题,因为我从几个小时就被困在这个问题上。 Your's help will be greatly appreciated.您的帮助将不胜感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM