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.

65 lines
2.4 KiB

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