Jump to content
Sign in to follow this  
oatkins

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

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×