StyleCop - ignore AssemblyInfo.cs ? RRS feed

  • Question

  • User998291137 posted


    Using StyleCop, i get this error for my AssemblyInfo.cs

    Error  SA1633 : CSharp.Documentation : The file has no header, the header Xml is invalid, or the header is not located at the top of the file. 

    Is there a way to ignore this file?

    Thanks Peter

    Monday, February 22, 2016 10:48 PM


  • User2050872319 posted

    Add the following header to your AssemblyInfo.cs file.

    According to StyleCop Documentation

    A file that is completely auto-generated by a tool, and which should not be checked or enforced by StyleCop, can include an “auto-generated” header rather than the standard file header. This will cause StyleCop to ignore the file. This type of header should never be placed on top of a manually written code file.

    // <auto-generated />
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 22, 2016 11:04 PM