1
如何檢查GAC中的程序集是否存在於Windows批處理文件中?檢查批處理文件中GAC中是否有程序集
我想:
C:\>gacutil /l ExistentAssembly
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
ExistentAssembly, Version=4.0.0.0, Culture=neutral, PublicKeyToke
n=023235e0weaaa8f0, processorArchitecture=x86
Number of items = 1
當我們列出了一個不存在的組件:
C:\>gacutil /l NonExistentAssembly
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
Number of items = 0
但是,當沒有項目被發現沒有錯誤級別。 這裏有什麼方法?