2009-01-22 111 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