如何将NHibernate XML模式添加到Visual Studio? [英] How to add NHibernate XML schema to Visual Studio?
问题描述
我正在学习NHibernate,并在App.config
中添加了<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
. Visual Studio报告了一条消息:
I'm learning NHibernate and I added <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
to App.config
. Visual Studio reported a message:
找不到元素'urn:nhibernate-configuration-2.2:hibernate-configuration'的架构信息.
Could not find schema information for the element 'urn:nhibernate-configuration-2.2:hibernate-configuration'.
我知道这不是问题,但是如果VS知道该架构,则IntelliSense将起作用.如何添加架构?
I know this is not a problem, but if VS knew the schema, IntelliSense would work. How can I add the schema?
推荐答案
从NHibernate下载的文件夹Required_Bins
中将两个.xsd
复制到C:\ Program Files \ Microsoft Visual Studio 10.0 \ Xml \ Schemas.如果您使用的是2008年以外的其他版本的VS(或者您在其他地方安装了VS),请相应地更改路径.
Copy the two .xsd
from the folder Required_Bins
from the NHibernate download to C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas. If you use other version of VS than 2008 (or if you have VS installed elsewhere), change the path accordingly.
这篇关于如何将NHibernate XML模式添加到Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!