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

发布于 2024-09-30 13:55:15 字数 747 浏览 0 评论 0原文

我为我们的项目编写了自定义 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高速公鹿 2024-10-07 13:55:15

据我所知,帮助库将尝试在帮助库中查找规则名称,并且确实不使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文