You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.1 KiB

4 years ago
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  3. <!-- If system.codedom tag is absent -->
  4. <system.codedom xdt:Transform="InsertIfMissing">
  5. </system.codedom>
  6. <!-- If compilers tag is absent -->
  7. <system.codedom>
  8. <compilers xdt:Transform="InsertIfMissing">
  9. </compilers>
  10. </system.codedom>
  11. <!-- If a .cs compiler is already present, the existing entry needs to be removed before inserting the new entry -->
  12. <system.codedom>
  13. <compilers>
  14. <compiler
  15. extension=".cs"
  16. xdt:Transform="Remove"
  17. xdt:Locator="Match(extension)" />
  18. </compilers>
  19. </system.codedom>
  20. <!-- Inserting the new compiler -->
  21. <system.codedom>
  22. <compilers>
  23. <compiler
  24. language="c#;cs;csharp"
  25. extension=".cs"
  26. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  27. warningLevel="4"
  28. compilerOptions="/langversion:6 /nowarn:1659;1699;1701"
  29. xdt:Transform="Insert" />
  30. </compilers>
  31. </system.codedom>
  32. <!-- If a .vb compiler is already present, the existing entry needs to be removed before inserting the new entry -->
  33. <system.codedom>
  34. <compilers>
  35. <compiler
  36. extension=".vb"
  37. xdt:Transform="Remove"
  38. xdt:Locator="Match(extension)" />
  39. </compilers>
  40. </system.codedom>
  41. <!-- Inserting the new compiler -->
  42. <system.codedom>
  43. <compilers>
  44. <compiler
  45. language="vb;vbs;visualbasic;vbscript"
  46. extension=".vb"
  47. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  48. warningLevel="4"
  49. compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"
  50. xdt:Transform="Insert" />
  51. </compilers>
  52. </system.codedom>
  53. </configuration>