gpt4 book ai didi

c# - 我可以通过 gacutil 安装,但不能卸载相同的 dll

转载 作者:可可西里 更新时间:2023-11-01 08:01:13 33 4
gpt4 key购买 nike

我已经使用 gacutil 安装了一个 DLL。

gacutil.exe /i SI.ArchiveService.CommonLogic.Exceptions.dll

使用gacutil/l 显示确实安装了。

SI.ArchiveService.CommonLogic.Exceptions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=925c8734ae397609, processorArchitecture=MSIL

然后我想卸载它。

gacutil.exe /u SI.ArchiveService.CommonLogic.Exceptions.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.

No assemblies found matching: SI.ArchiveService.CommonLogic.Exceptions.dll
Number of assemblies uninstalled = 0
Number of failures = 0

为什么这行不通?如何卸载它?

最佳答案

安装程序集需要 DLL 的路径名。卸载需要程序集的显示名称。他们不必彼此相似。查看 Assembly.FullName 属性。 gacutil.exe/l(如列表中所示)为您提供显示名称列表。

关于c# - 我可以通过 gacutil 安装,但不能卸载相同的 dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5431412/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com