2009-01-22 115 views
2

哪里可以找到绑定重定向信息的最佳位置?或者可能只是对您在项目中放置这些重定向的位置的基本解释?绑定重定向

回答

4

,你把它只能是配置。查找详情here

3

为什么不从beginning开始?

理解后它做什么,你最终会喜欢的东西:

<configuration> 
    <runtime> 
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
      <assemblyIdentity name="myAssembly" 
           publicKeyToken="32ab4ba45e0a69a1" 
           culture="neutral" /> 
      <bindingRedirect oldVersion="1.0.0.0" 
          newVersion="2.0.0.0"/> 
     </dependentAssembly> 
     </assemblyBinding> 
    </runtime> 
</configuration> 
+0

你把这个放在哪个文件中? – leora 2009-01-22 12:16:30

+0

你可以做app.config或machine.config。请参阅http://msdn.microsoft.com/en-us/library/0ash1ksb(v=vs.71).aspx – 2011-12-28 18:16:56