Adding binding redirects removes any comments in the <assemblyBinding> sections, and also reformats the config file, changing whitespace in places unrelated to the binding redirects.<br /><br />For example, this...<br /><br /> <runtime><br /> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><br /> <!-- Required because Cclp.Presentation was built against a previous version --><br /> <dependentAssembly><br /> <assemblyIdentity name="Telerik.Windows.Data" publicKeyToken="5803cfa389c90ce7" culture="neutral"/><br /> <bindingRedirect oldVersion="2010.3.1314.35" newVersion="2011.1.419.35"/><br /> </dependentAssembly><br /> </assemblyBinding><br /> </runtime><br /><br /> <startup><br /> <!-- Test comment --><br /> <supportedRuntime <br /> version="v2.0.50727"/><br /> </startup><br /><br /><br />...is changed to this...<br /><br /> <runtime><br /> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><br /> <dependentAssembly><br /> <assemblyIdentity name="Telerik.Windows.Data" publicKeyToken="5803cfa389c90ce7" culture="neutral" /><br /> <bindingRedirect oldVersion="0.0.0.0-2011.1.419.35" newVersion="2011.1.419.35" /><br /> </dependentAssembly><br /> </assemblyBinding><br /> </runtime><br /> <startup><br /> <!-- Test comment --><br /> <supportedRuntime version="v2.0.50727" /><br /> </startup><br /><br />Note that:<br /><br />1) The comment in the <assemblyBinding> section was removed (although the one in the <startup> section was not).<br />2) The newline between the <runtime> section and the <startup> section was removed.<br />3) A space was added before the self-closing bracket in the <supportedRuntime> element of the <startup> section.<br /><br />Removing the comment is destroying important content. The whitespace changes are merely annoying, but it is very important to minimize unnecessary changes when using source control.
↧