compileassemblyfromdom

CompileAssemblyFromDom (CodeDom compiler) generates line numbers differently than visual studio

I am using the CodeDOM to generate and compile an assembly. I have found that if the generated code does not compile, the CompileAssemblyFromDom method generates line numbers that are different than what visual studio would generate. So for example, if I call GenerateCodeFromCompileUnit on the code provider, take the generated code in...