Alex Meyer-Gleaves

CodeDomProvider and Compiler Warning Levels

on c#, CodeDOM

When generating code using the CodeDomProvider you may noticed that by default you do not get the same warning messages in the CompilerResults that you receive when compiling in Visual Studio. For example, lets take the simple code below that has a static method with two unused variables. public class Test { static void testMethod() { int…