Before you can install an assembly in the GAC, the assembly must have a strong name. To install an assembly named SomeAssembly.dll into the GAC, use the command gacutil /i SomeAssembly.dll.
To uninstall the SomeAssembly.dll assembly from the GAC, use the command gacutil /u SomeAssembly. Notice that you don't use the .dll extension to refer to the assembly once it's installed in the GAC.
To view the assemblies installed in the GAC, use the command gacutil /l. This will produce a long list of all the assemblies installed in the GAC, as well as a listing of assemblies that have been precompiled to binary form and installed in the ngen cache. To avoid searching through this list to determine if a particular assembly is installed in the GAC, use the command gacutil /l SomeAssembly.
No comments:
Post a Comment