简体   繁体   中英

Xsd validation vs2010

Motivation: I want Cause compilation error when xml in project doesn't meet its xsd.

Tried to change build action of the xml to compile but it didn't work I suppose that VS2010 trying to compile it with .NET compiler.

Is there any way to achieve it ? (changing the default building tool for xml or any other way)

Thanks

尝试使用msbuildextensionpack的XmlTask​​命名为Validate: http ://www.msbuildextensionpack.com/help/4.0.5.0/html/3d383fd0-d8a7-4b93-3e03-39b48456dac1.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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