App.config 导致“找不到元素‘supportRuntime’的架构信息" [英] App.config cause "Could not find schema information for the element 'supportRuntime'"
问题描述
我尝试使用 SQLite dll,一切正常.我有一个关于 SQLite.dll 的小问题是 v2.xx 不能与我的项目 .NET v4 一起使用.
I try to use SQLite dll, everything go fine. I have a little problem about SQLite.dll is v2.xx can't use with my project .NET v4.
所以我在这个网站上找到了创建App.config的解决方案,有这样的信息
So I found the solution in this website that create App.config, with the information like this
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
所以,解决方案有效.我可以正确使用 SQLite,但编译器总是显示这样的消息
So, the solution work. I can use SQLite properly, but the compiler always show message like this
有什么建议吗?
推荐答案
选择 app.config
属性的架构为 DotNetConfig35.xsd
.
Select the schema for app.config
properties as DotNetConfig35.xsd
.
打开 app.config 文件,右键单击它并转到属性,您可以在那里看到架构属性.
Open app.config file, right click on it and go to properties, you can see the schema attribute over there.
这篇关于App.config 导致“找不到元素‘supportRuntime’的架构信息"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!