【发布时间】:2011-09-04 14:42:41
【问题描述】:
我正在使用 Visual Studio 创建使用 SQLite 数据库的 C# 应用程序。 我想要做的是将 DLL 文件保存在名为“config”的子文件夹中。我在 bin/debug 文件夹中创建了 config 文件夹,并将 System.Data.SQLite.dll 文件复制到其中。 然后我使用 bin/debug/config/Systtem.Data.SQLite.dll 文件添加了对我的解决方案的引用。 问题是,每次我构建解决方案时,VS 都会直接在 bin/debug 中创建新的 System.Data.SQLite.dll 文件,并且当我尝试使用我的应用程序时(在删除 bin/debug/System.Data.SQLite.dll 之后)它会抛出一个例外=它无法从配置文件夹中加载 dll ...... 我该如何解决?
【问题讨论】:
-
这可能会有所帮助...stackoverflow.com/questions/5110553/…
标签: visual-studio dll reference bin