Summary
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks - Base Types
-
- ExternalProgramBase
Syntax
[TaskName("gac")]
[ProgramLocation(LocationType.FrameworkSdkDir)]
[Obsolete("Use either <gac-install> or <gac-uninstall> tasks instead.", false)]
public class GacTask : ExternalProgramBase
Examples
Inserts assembly mydll.dll
into the global assembly cache.
<gac assembly="mydll.dll" action="install" />
Removes the assembly hello
from the global assembly cache and
the native image cache.
<gac assembly="hello" action="uninstall" />
Note that the previous command might remove more than one assembly
from the assembly cache because the assembly name is not fully
specified. For example, if both version 1.0.0.0 and 3.2.2.1 of
hello
are installed in the cache, both of the assemblies will
be removed from the global assembly cache.
Use the following example to avoid removing more than one assembly. This command removes only the hello assembly that matches the fully specified version number, culture, and public key.
<gac assembly="hello,Version=1.0.0.1,Culture=de,PublicKeyToken=45e343aae32233ca" action="uninstall" />
Remarks
This tasks provides some of the same functionality as the gacutil tool provided in the .NET Framework SDK.
Specifically, the NAnt.Contrib.Tasks.GacTask
allows you to install assemblies
into the cache and remove them from the cache.
Refer to the Global Assembly Cache Tool (Gacutil.exe) for more information.
Attributes
Type | Description |
---|---|
TaskName | |
ProgramLocation | |
ObsoleteAttribute |
Properties
Name | Value | Summary |
---|---|---|
ActionType | GacTask |
Defines the action to take with the assembly. The default is
NAnt.Contrib.Tasks.GacTask.ActionTypes.install .
|
AssemblyFileSet | FileSet |
Fileset are used to define multiple assemblies.
|
AssemblyName | string |
The name of a file that contains an assembly manifest.
|
ExeName | string | |
Managed | ManagedExecution |
Gets a value indiciating whether the external program is a managed
application which should be executed using a runtime engine, if
configured.
|
ProgramArguments | string |
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void | |
Initialize |
void |