<bdo id='hmO9a'></bdo><ul id='hmO9a'></ul>

    1. <tfoot id='hmO9a'></tfoot>
      1. <legend id='hmO9a'><style id='hmO9a'><dir id='hmO9a'><q id='hmO9a'></q></dir></style></legend>

        <small id='hmO9a'></small><noframes id='hmO9a'>

        <i id='hmO9a'><tr id='hmO9a'><dt id='hmO9a'><q id='hmO9a'><span id='hmO9a'><b id='hmO9a'><form id='hmO9a'><ins id='hmO9a'></ins><ul id='hmO9a'></ul><sub id='hmO9a'></sub></form><legend id='hmO9a'></legend><bdo id='hmO9a'><pre id='hmO9a'><center id='hmO9a'></center></pre></bdo></b><th id='hmO9a'></th></span></q></dt></tr></i><div id='hmO9a'><tfoot id='hmO9a'></tfoot><dl id='hmO9a'><fieldset id='hmO9a'></fieldset></dl></div>

      2. 整个命名空间的“SuppressMessage"

        #39;SuppressMessage#39; for a whole namespace(整个命名空间的“SuppressMessage)

        <small id='Rj2Mf'></small><noframes id='Rj2Mf'>

              <tbody id='Rj2Mf'></tbody>

                  <bdo id='Rj2Mf'></bdo><ul id='Rj2Mf'></ul>
                  <i id='Rj2Mf'><tr id='Rj2Mf'><dt id='Rj2Mf'><q id='Rj2Mf'><span id='Rj2Mf'><b id='Rj2Mf'><form id='Rj2Mf'><ins id='Rj2Mf'></ins><ul id='Rj2Mf'></ul><sub id='Rj2Mf'></sub></form><legend id='Rj2Mf'></legend><bdo id='Rj2Mf'><pre id='Rj2Mf'><center id='Rj2Mf'></center></pre></bdo></b><th id='Rj2Mf'></th></span></q></dt></tr></i><div id='Rj2Mf'><tfoot id='Rj2Mf'></tfoot><dl id='Rj2Mf'><fieldset id='Rj2Mf'></fieldset></dl></div>
                  <legend id='Rj2Mf'><style id='Rj2Mf'><dir id='Rj2Mf'><q id='Rj2Mf'></q></dir></style></legend>
                  <tfoot id='Rj2Mf'></tfoot>
                  本文介绍了整个命名空间的“SuppressMessage"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在测试方法中使用下划线以获得更好的可读性,并且我想抑制整个测试命名空间的 FxCop 错误/警告.

                  I use underscores for my test methods for a better readability and I want to suppress FxCop errors/warnings for the whole test namespace.

                  我怎样才能做到这一点?我玩过 GlobalSuppressions.cs 但没有任何效果:

                  How can I achieve this? I played with GlobalSuppressions.cs but nothing worked:

                  [module: System.Diagnostics.CodeAnalysis.SuppressMessage(
                      "Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores",
                      Scope = "namespace", Target = "Company.Product.Tests")]
                  
                  [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
                      "Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores",
                      Scope = "namespace", Target = "Company.Product.Tests")]
                  

                  推荐答案

                  我认为这是不可能的 harlam357 已经说过了.

                  I think it is not possible as harlam357 already said.

                  这篇关于整个命名空间的“SuppressMessage"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  IBM.Data.DB2.Core connection problems(IBM.Data.DB2.Core 连接问题)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  Datetime field overflow with IBM Data Server Client v9.7fp5(IBM Data Server Client v9.7fp5 的日期时间字段溢出)
                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)

                    • <i id='Y1BW8'><tr id='Y1BW8'><dt id='Y1BW8'><q id='Y1BW8'><span id='Y1BW8'><b id='Y1BW8'><form id='Y1BW8'><ins id='Y1BW8'></ins><ul id='Y1BW8'></ul><sub id='Y1BW8'></sub></form><legend id='Y1BW8'></legend><bdo id='Y1BW8'><pre id='Y1BW8'><center id='Y1BW8'></center></pre></bdo></b><th id='Y1BW8'></th></span></q></dt></tr></i><div id='Y1BW8'><tfoot id='Y1BW8'></tfoot><dl id='Y1BW8'><fieldset id='Y1BW8'></fieldset></dl></div>
                          <bdo id='Y1BW8'></bdo><ul id='Y1BW8'></ul>
                          <legend id='Y1BW8'><style id='Y1BW8'><dir id='Y1BW8'><q id='Y1BW8'></q></dir></style></legend>
                            <tbody id='Y1BW8'></tbody>

                          <small id='Y1BW8'></small><noframes id='Y1BW8'>

                          <tfoot id='Y1BW8'></tfoot>