禁止显示消息时类别错误

时间:2020-05-11 06:57:25

标签: c# visual-studio azure code-analysis suppressmessage

我正在与Visual Studio合作进行项目建设和警告解决。 出于部署目的,我使用的是Azure管道。

抑制逻辑可在Visual Studio中使用 但是天蓝色管道无法识别全局抑制中的抑制。

经调查,我发现azure可以识别

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Scope = "member", Target = "

但是当我使用Visual Studio抑制时,它会生成以下代码

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "<Pending>", Scope = "member", Target = "

Visual Studio取代了“ Microsoft.Performance”,给了我“ Performance” 如果您访问官方的CA1822,它还会显示类别为“ Microsoft.Performance”。

我不知道该怎么办以及如何解决这个问题。

我正在使用Visual Studio版本4.8.03752 对于代码分析,我正在使用名为“ Microsoft Code Analysis 2019”的VSIX扩展 请提供一些解决方案,因为我无法在线找到与此相关的任何文章。

0 个答案:

没有答案
相关问题