它在调试和发布时运行良好,但是当我使用 Intellilock 2.8.9.16 时,它无法从配置设置文件中读取。
try
{
dbLocation = SqLiteBaseRepository.GetDatabaseFile;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
这就是:
public static string GetDatabaseFile
{
get
{
return Properties.Settings.Default.ShiftLogDatabase;
}
}
我的设置是:
在 App.config 中确认:
当我使用 IntelliLock 发布或构建时,是否需要设置任何构建操作或部署设置?