如何在GAC中查看文件夹和文件? [英] How to view the Folder and Files in GAC?
问题描述
我想查看 GAC 中的文件夹和子文件夹。还想了解有关在 GAC中添加和删除的信息。
I want to view the folders and sub folders in GAC. Also want to know about adding and removing from GAC.
要安装,请打开 Visual Studio命令提示符
,在命令提示符下编写以下行:-
To install we write this lines in command prompt by opening Visual Studio command prompt
:-
gacutil / i [汇编路径]
但是要卸载,我们只需要:-
But to uninstall we need only:-
gacutil / u [程序集名称]
为什么?
推荐答案
安装:
gacutil -i "path_to_the_assembly"
查看:
在Windows资源管理器文件夹
Open in Windows Explorer folder
- .NET 1.0-NET 3.5:
c:\windows\assembly
(%systemroot%\assembly
) - .NET 4.x:
%windir% \Microsoft.NET程序集
- .NET 1.0 - NET 3.5:
c:\windows\assembly
(%systemroot%\assembly
) - .NET 4.x:
%windir%\Microsoft.NET\assembly
OR gacutil –l
要安装程序集时,必须指定 g acutil
可以找到它,因此您还必须提供完整路径。但是,当程序集已经在GAC中时- gacutil
知道一个文件夹路径,因此只需要一个程序集名称即可。
When you are going to install an assembly you have to specify where gacutil
can find it, so you have to provide a full path as well. But when an assembly already is in GAC - gacutil
know a folder path so it just need an assembly name.
MSDN:
- How to: Install an Assembly into the Global Assembly Cache
- How to: View the Contents of the Global Assembly Cache
这篇关于如何在GAC中查看文件夹和文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!