简体   繁体   English

FxCop自定义规则文档。 为什么找不到我的网址?

[英]FxCop Custom Rule Documentation. Why is my URL not found?

I wrote custom FxCop rules for our project. 我为我们的项目编写了自定义FxCop规则。 I wrote a wiki page documenting it. 我写了一个Wiki页面记录它。

Now I just want that a developer can press F1 on a CA warning and gets the documentation shown. 现在,我只希望开发人员可以在出现CA警告时按F1键并获得显示的文档。 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). 当我按自己的规则按F1时,我得到了MS“文档资源管理器”(又名帮助),其中显示了有关错误列表窗口的文档(http://msdn.microsoft.com/zh-cn/library/bb895338.aspx)。

Did anyone ever use this successfully? 有人成功使用过吗?

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. 据我所知,帮助库将尝试在帮助库中查找“规则”名称,而实际上并没有使用rules.xml中包含的URL。

The FxCop Gui does, but then again that one doesn't open Visual Studio Help. FxCop Gui可以,但同样不能打开Visual Studio帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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