Web.config 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <appSettings>
  8. <add key="webpages:Version" value="3.0.0.0"/>
  9. <add key="webpages:Enabled" value="false"/>
  10. <add key="ClientValidationEnabled" value="true"/>
  11. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  12. </appSettings>
  13. <system.web>
  14. <compilation debug="true" targetFramework="4.6.1"/>
  15. <httpRuntime targetFramework="4.6.1"/>
  16. </system.web>
  17. <runtime>
  18. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  19. <dependentAssembly>
  20. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  21. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  22. </dependentAssembly>
  23. <dependentAssembly>
  24. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  25. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  26. </dependentAssembly>
  27. <dependentAssembly>
  28. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  29. <bindingRedirect oldVersion="1.0.0.0-5.2.4.0" newVersion="5.2.4.0"/>
  30. </dependentAssembly>
  31. </assemblyBinding>
  32. </runtime>
  33. <system.codedom>
  34. <compilers>
  35. <compiler language="c#;cs;csharp" extension=".cs"
  36. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  37. warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
  38. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
  39. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  40. warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
  41. </compilers>
  42. </system.codedom>
  43. </configuration>