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.

33 lines
1.3 KiB

10 years ago
  1. <?xml version="1.0"?>
  2. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  3. <!-- If runtime tag is absent -->
  4. <runtime xdt:Transform="InsertIfMissing">
  5. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  6. </assemblyBinding>
  7. </runtime>
  8. <!-- If runtime tag is present, but assembly binding tag is absent -->
  9. <runtime>
  10. <assemblyBinding xdt:Transform="InsertIfMissing" xmlns="urn:schemas-microsoft-com:asm.v1">
  11. </assemblyBinding>
  12. </runtime>
  13. <!-- If the binding redirect is already present, the existing entry needs to be removed before inserting the new entry-->
  14. <runtime>
  15. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  16. <dependentAssembly xdt:Transform="Remove"
  17. xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" >
  18. </dependentAssembly>
  19. </assemblyBinding>
  20. </runtime>
  21. <!-- Inserting the new binding redirect -->
  22. <runtime>
  23. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  24. <dependentAssembly xdt:Transform="Insert">
  25. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  26. <bindingRedirect oldVersion="1.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
  27. </dependentAssembly>
  28. </assemblyBinding>
  29. </runtime>
  30. </configuration>