SpecificVersion=False with TFS API dll's

馋奶兔 提交于 2019-12-02 07:22:52
vcsjones

Specific version does not work if the assembly is strong name signed. Microsoft almost certainly strong-name signed their assembly.

Your website will have to make use of a bindingRedirect to redirect all versions to from v10 to v11. For example:

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="Microsoft.TeamFoundation.Client"
                              publicKeyToken="xxxxxxxxxxxxx"
                              culture="neutral" />
            <bindingRedirect oldVersion="10.0.0.0"
                             newVersion="11.0.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>

Make sure to update the publicKeyToken to the correct value.


Alternatively, you could recompile the website against the v11 version of the TFS SDK to avoid the binding redirect, however then it will only work with v11 of the TFS SDK.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!