FxCop 自定义规则文档。为什么我的网址找不到?
我为我们的项目编写了自定义 FxCop 规则。我写了一个维基页面来记录它。
现在我只希望开发人员可以在 CA 警告上按 F1 并获取显示的文档。不幸的是,它不起作用,我找不到任何有关它的文档。
我只是将 url 放入规则文件中,如下所示:
<Rule TypeName="MyRule" Category="MyCategory" CheckId="MY0001">
<Name>...</Name>
<Description>...</Description>
<Owner>Stefan Steinegger</Owner>
<Url>http://ourwikiserver/MY0001.ashx</Url>
<Resolution>...</Resolution>
<MessageLevel Certainty="100">Error</MessageLevel>
<FixCategories>Breaking</FixCategories>
</Rule>
当我在自己的规则上按 F1 时,我会看到 MS“文档资源管理器”(又名帮助),显示有关错误列表窗口的文档 (http://msdn.microsoft.com /en-us/library/bb895338.aspx)。
有人用过这个成功吗?
I wrote custom FxCop rules for our project. I wrote a wiki page documenting it.
Now I just want that a developer can press F1 on a CA warning and gets the documentation shown. Unfortunately, it does not work and I can't find any documentation about it.
I just put the url into the rules file like this:
<Rule TypeName="MyRule" Category="MyCategory" CheckId="MY0001">
<Name>...</Name>
<Description>...</Description>
<Owner>Stefan Steinegger</Owner>
<Url>http://ourwikiserver/MY0001.ashx</Url>
<Resolution>...</Resolution>
<MessageLevel Certainty="100">Error</MessageLevel>
<FixCategories>Breaking</FixCategories>
</Rule>
When I press F1 on my own rules, I get the MS "document explorer" (aka help) showing documentation about the error list window (http://msdn.microsoft.com/en-us/library/bb895338.aspx).
Did anyone ever use this successfully?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,帮助库将尝试在帮助库中查找规则名称,并且确实不使用rules.xml中包含的url。
FxCop Gui 可以,但同样不会打开 Visual Studio 帮助。
As far as I know the Help Library will try to find the Rule name in the help library and indeed does not use the url contained int he rules.xml.
The FxCop Gui does, but then again that one doesn't open Visual Studio Help.