Why do some SuppressMessage attributes remain even when CODE_ANALYSIS compilation symbol is set?

210 Views Asked by At

I was looking through the code for Entity Framework.

I noticed that the production dll for entity framework 5 has some SuppressMessage attributes in it still

enter image description here

Even though the project is obviously built with the CODE_ANALYSIS compilation symbol (if you look at the open source project) to remove SuppressMessage attributes, it's still there in some cases.

Isn't this just adding to the size of the dll (I know there isn't a runtime performance hit since it's all just metadata) But why are only some parsed out? There are thousands that didn't end up in the production DLL.

Also I decompiled the version you get from NuGet just to be sure I wasn't building the project with the wrong settings.

I'm using the EF codebase as my example because I can't even get the CODE_ANALYSIS compilation symbol to remove my own suppressmessages even when I compile for release

0

There are 0 best solutions below