问题描述
我想查看 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:windowsassembly
(%systemroot%assembly
) - .NET 4.x:
%windir%Microsoft.NETassembly
OR gacutil –l
当您要安装程序集时,您必须指定 gacutil
可以找到它的位置,因此您还必须提供完整路径.但是当一个程序集已经在 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:
这篇关于如何查看GAC中的文件夹和文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!