如何将警告消息视为我的自定义规则的错误消息 [英] How to treat warning message as error message for my custom rule
本文介绍了如何将警告消息视为我的自定义规则的错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将警告消息视为样式警察中我的自定义规则的错误消息。
并且所有构建消息的行为应该与当前的行为相同。
我尝试了什么:
试图搜索多个选项但是如果我们使用它那么所有的警告信息都应该显示为错误消息,我不想要。
How to treat warning message as error message for my custom rule in Style Cop.
And all the in build messages should behave as currently it's behaving.
What I have tried:
Tried to search many options but if we use that then all the warning messages should be shown as error message, which I don't want.
推荐答案
我已经通过创建自定义规则解决了这个问题。
谢谢
I have resolved it by creating the custom rules.
Thanks
这篇关于如何将警告消息视为我的自定义规则的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文