开发者

Is there a way to fail a C# compile on XSD warnings?

I have been gradually replacing very large text file lookups with XSD validated XML lookups that provide basic validation like making sure there are no duplicate values or invalid values.

I want to make the compile fail if a developer enters data on the XML that violates the key constraint.

I have set my projects to treat warnings as errors and I do get warnings at compile time for the key constraint violations, but the compile still completes successfully.

Is there a way to make the compile fail so that developers 开发者_开发问答are forced to fix the conflict?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜