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.
 
 
 
 
 
 

41 lines
1.7 KiB

  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.Helpers')" >
  18. </dependentAssembly>
  19. <dependentAssembly xdt:Transform="Remove"
  20. xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages')" >
  21. </dependentAssembly>
  22. </assemblyBinding>
  23. </runtime>
  24. <!-- Inserting the new binding redirect -->
  25. <runtime>
  26. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  27. <dependentAssembly xdt:Transform="Insert">
  28. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  29. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  30. </dependentAssembly>
  31. <dependentAssembly xdt:Transform="Insert">
  32. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  33. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  34. </dependentAssembly>
  35. </assemblyBinding>
  36. </runtime>
  37. </configuration>