c# - Cannot suppress CA1903:UseOnlyApiFromTargetedFramework -


fxcop telling me following:

"assembly 'ilretail.ebusiness.common.webutility.dll' has reference assembly 'system.web.routing, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35'. because assembly introduced in .net framework 3.5 service pack 1, higher project's target framework, .net framework 3.5, application may fail run on systems without framework installed."

to try suppress this, have following line in assembly.cs:

[module: suppressmessage("microsoft.portability", "ca1903:useonlyapifromtargetedframework", messageid = "system.web.routing, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35")] 

i can suppress message in other projects, not one.

any ideas i'm missing?

you need make sure added code_analysis compilation symbol.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -