我可以通过 gacutil 安装,但不能卸载相同的 dll
我已经使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
安装程序集需要 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.没关系。
完成了工作。另外,导航到 C:\WINDOWS\Assembly,右键单击它,然后选择卸载即可。我通过查看它的属性找到了它,并且该名称没有 dll 扩展名。
Nevermind.
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.
如果 GAC 中有多个具有相同显示名称的程序集,这会更安全一些
This is a little safer if you have multiple assemblies with the same display name in the GAC
来到这里寻找答案但没有完全得到。
您实际需要做的是使用双引号“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