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

发布于 2024-10-26 03:06:42 字数 706 浏览 8 评论 0原文

我已经使用 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

为什么这不起作用?我该如何卸载它?

I have installed a DLL using the gacutil.

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

Using the gacutil /l shows that it is indeed installed.

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

Then I wanted to uninstall it.

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

Why doesn't this work? How do I uninstall it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

白昼 2024-11-02 03:06:42

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

Installing an assembly requires the path name of the DLL. Uninstalling requires the display name of the assembly. They don't have to resemble each other. Review the Assembly.FullName property. gacutil.exe /l (ell as in list) gets you a list of display names.

月牙弯弯 2024-11-02 03:06:42

没关系。

gacutil.exe /u SI.ArchiveService.CommonLogic.Exceptions

完成了工作。另外,导航到 C:\WINDOWS\Assembly,右键单击它,然后选择卸载即可。我通过查看它的属性找到了它,并且该名称没有 dll 扩展名。

Nevermind.

gacutil.exe /u SI.ArchiveService.CommonLogic.Exceptions

Did the job. Also navigating to C:\WINDOWS\assembly, right-click on it and then choose uninstall would do it. I figured it out by looking at its properties and the name was without the dll extension.

对风讲故事 2024-11-02 03:06:42

如果 GAC 中有多个具有相同显示名称的程序集,这会更安全一些

gactutil.exe /u myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab

This is a little safer if you have multiple assemblies with the same display name in the GAC

gactutil.exe /u myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
七秒鱼° 2024-11-02 03:06:42

来到这里寻找答案但没有完全得到。

您实际需要做的是使用双引号“Assemblyname”包围完整的程序集名称,即

“YOURDLLNAME,Version=6.3.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”

完成过程,使用命令提示符导航到此路径:C:\ Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 工具

并运行查询: gactuil.exe /u "YOURDLLNAME, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

希望这对某人有帮助

Came here while finding answer but did not get fully .

what you actually need to do is to use double quotes "Assemblyname" surrounding complete assembly name i.e

"YOURDLLNAME, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

Complete process , navigate to this path using command prompt : C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools

and run query : gactuil.exe /u "YOURDLLNAME, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

Hope this helps someone

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文