Jump to content

Error parsing C# file containing "#pragma warning disable XXXX" where XXXX contains non-numeric characters


oatkins

Recommended Posts

Visual Studio 2015 makes more extensive use of #pragma to disable Roslyn analyzer warnings in sections of code. Diagnostic identifier strings are used in the #pragma statement. In previous versions of VS these would typically (always?) be numeric, but with VS2015 they may contain non-numeric characters too.

Semantic Merge reports an "Invalid number" warning when parsing a file containing this kind of suppression.

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...