Linux command
gacutil 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install assembly to GAC
gacutil -i [assembly.dll]
Uninstall assembly from GAC
gacutil -u [AssemblyName]
List assemblies in GAC
gacutil -l
List specific assembly
gacutil -l [AssemblyName]
Install from package
gacutil -i [assembly.dll] -package [name]
说明
gacutil manages the Global Assembly Cache (GAC) for .NET assemblies. The GAC stores shared assemblies that can be used by multiple .NET applications. On Linux, gacutil is provided by Mono. It installs, uninstalls, and lists assemblies in the GAC. Strong-named assemblies can be shared across applications through the GAC.
参数
- -i _assembly_
- Install assembly to GAC.
- -u _name_
- Uninstall assembly from GAC.
- -l _name_
- List assemblies (optionally filtered).
- -il _listfile_
- Install assemblies from list file.
- -ul _listfile_
- Uninstall assemblies from list file.
- -us _assembly_
- Uninstall assembly using its full name from the assembly file.
- -package _name_
- Package name for installation; creates a symlink in prefix/lib/mono/NAME/.
- -check_refs
- Check that installed assembly doesn't reference non-strong-named assemblies.
- -root _dir_
- Root directory prefix for GAC operations.
- -gacdir _dir_
- Specify GAC directory (deprecated, use -root instead).
FAQ
What is the gacutil command used for?
gacutil manages the Global Assembly Cache (GAC) for .NET assemblies. The GAC stores shared assemblies that can be used by multiple .NET applications. On Linux, gacutil is provided by Mono. It installs, uninstalls, and lists assemblies in the GAC. Strong-named assemblies can be shared across applications through the GAC.
How do I run a basic gacutil example?
Run `gacutil -i [assembly.dll]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _assembly_ do in gacutil?
Install assembly to GAC.