28 February 2012

Suppress EF Compiler Warnings Error 11007 and 11008

I am working on an MVVM project that parses records out of encrypted data files, on demand.  There is no real data source for this project, for Entity Framework 4.1 to reference.  Every time I build the model assembly, I get a huge pile of warnings for Error 11007 and 11008.

Because I am a savvy developer (and slightly obsessive-compulsive), I don't want to see any compiler warnings after a build.  Because I know these are non-issue warnings, I can safely disable them.  Here's how to disable EF warnings in your projects: