简体   繁体   English

如何添加新的app.Config文件?

[英]How Can I add new app.Config file?

I'm trying to use SQLite in my .Net application but it throws an exception and I get this 我正在尝试在.Net应用程序中使用SQLite,但是它引发了异常,我得到了

Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. 附加信息:混合模式程序集是针对运行时的版本“ v2.0.50727”构建的,没有附加配置信息就无法在4.0运行时中加载。

From here I read the solution that's is changing app.config file, but in my solution folder there is no configuration file, where is that configuration file? 这里我读到正在更改app.config文件的解决方案,但是在我的解决方案文件夹中没有配置文件,该配置文件在哪里? what should I change? 我应该改变什么? thanks 谢谢

You can add your own app.config file to your project. 您可以将自己的app.config文件添加到项目中。 Right click the project and add new items. 右键单击该项目并添加新项目。 Then add the lines that was given in the other link. 然后添加其他链接中给出的行。

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

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