Guest User

Compiling with CodeDomProvider doesn't allow new features of C# or VB

a guest
Feb 27th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. var csc = new CSharpCodeProvider(new Dictionary<string, string>() { { "CompilerVersion", "v3.5" } });
  2.  
  3. <system.codedom>
  4. <compilers>
  5. <compiler
  6. language="vb;vbs;visualbasic;vbscript"
  7. extension=".vb"
  8. type="Microsoft.VisualBasic.VBCodeProvider, System,
  9. Version=2.0.3600.0, Culture=neutral,
  10. PublicKeyToken=b77a5c561934e089"
  11. compilerOptions="/optimize"
  12. warningLevel="1" >
  13. <providerOption
  14. name="CompilerVersion"
  15. value="v3.5" />
  16. </compiler>
  17. <compiler
  18. language="c#;cs;csharp"
  19. extension=".cs"
  20. type="Microsoft.CSharp.CSharpCodeProvider, System,
  21. Version=2.0.3600.0, Culture=neutral,
  22. PublicKeyToken=b77a5c561934e089"
  23. compilerOptions="/optimize"
  24. warningLevel="1" >
  25. <providerOption
  26. name="CompilerVersion"
  27. value="v3.5" />
  28. </compiler>
  29. </compilers>
  30. </system.codedom>
Add Comment
Please, Sign In to add comment