2011-10-11 67 views
0

我在帖子How to: Create a Publisher Policy後創建了一個發佈者策略程序集。該策略將程序集從版本1.0.0.0重定向到版本2.0.0.0。.Net發佈者策略:這兩個程序集都需要位於GAC中?

只要舊程序集(v1.0.0.0)位於服務器上(在GAC中),這對我來說就行得通。是否有可能從服務器上刪除舊的程序集版本?

的配置我用:

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <runtime> 
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
     <assemblyIdentity name="Assembly.Name" 
          publicKeyToken="d24d3f23b4455982" 
          culture="neutral" /> 

     <bindingRedirect oldVersion="1.0.0.0" 
          newVersion="2.0.0.0"/> 
     </dependentAssembly> 
     </assemblyBinding> 
    </runtime> 
</configuration> 
+0

你爲什麼要刪除它? –

+0

刪除不再需要的內容?整潔的躁狂症。這不是絕對必要的。我想知道是否有可能。 – Stefan

+0

雞蛋和雞蛋的問題,我想。如果不先找到該程序集,則無法找到該策略文件。 –

回答

0

可恥的是我。我對組件版本做了一個混亂。所以答案是:是的,它沒有傳統的程序集。

相關問題