English 中文(简体)
我们有两版本的同一大会? 我希望我的客户能够选择哪组别?
原标题:We have two version of the same assembly in GAC? I want my client to make choice of which assembly to choose?
  • 时间:2009-10-29 07:05:57
  •  标签:

We have two version of the same assembly in GAC? I want my client to make choice of which assembly to choose?

最佳回答

查阅您的卷宗:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="clsLibVsn"
publicKeyToken="b035c4774706cc72"
culture="neutral"/>
<bindingRedirect oldVersion= "1.1.1830.10493"
newVersion= "1.0.1830.10461"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

You need to specify “bindingRedirect” in your config file. For ins in the above case “clsLibVsn” has two versions “1.1.1830.10493” and “1.0.1830.1 from which “1.1.1830.10493” is the recent version. But using the bindingRedirect we can s saying “1.0.1830.10461” is the new version. So the client will not use “1.1.1830.10493”.

问题回答

您可以申请编辑。 你们应该写出类似的内容:

<configuration>
    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="yourassembly" publicKeyToken="96D09A1EB7F44A99" culture="neutral"/>
          <bindingRedirect oldVersion="0.0.0.0-2.2.8.0" newVersion="2.2.8.0"/>
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
  </configuration>

页: 1 这将使你能够具体说明其申请需要。





相关问题
热门标签