Logo Search packages:      
Sourcecode: nant version File versions  Download package

NAnt::DotNet::Tasks::AssemblyLinkerTask Class Reference

Inheritance diagram for NAnt::DotNet::Tasks::AssemblyLinkerTask:

NAnt::Core::Tasks::ExternalProgramBase NAnt::Core::Task NAnt::Core::Element

List of all members.


Detailed Description

Wraps al.exe, the assembly linker for the .NET Framework.

All specified sources will be embedded using the /embed flag. Other source types are not supported.

Create a library containing all icon files in the current directory.

            <![CDATA[
        <al output="MyIcons.dll" target="lib">
            <sources>
                <include name="*.ico" />
            </sources>
        </al>
            ]]>

Definition at line 62 of file AssemblyLinkerTask.cs.


Public Member Functions

void Execute ()
 Executes the task unless it is skipped.
void Initialize (XmlNode elementNode)
 Performs default initialization.
void InitializeTaskConfiguration ()
 Initializes the configuration of the task using configuration settings retrieved from the NAnt configuration file.
bool IsLogEnabledFor (Level messageLevel)
 Determines whether build output is enabled for the given Level.
override void Log (Level messageLevel, string message, params object[] args)
 Logs a formatted message with the given priority.
override void Log (Level messageLevel, string message)
 Logs a message with the given priority.

Static Public Member Functions

static Element InitializeBuildElement (Element parent, XmlNode childNode, Element buildElement, Type elementType)

Public Attributes

const int UnknownExitCode = -1000
 Defines the exit code that will be returned by ExitCode if the process could not be started, or did not exit (in time).

Protected Member Functions

void CopyTo (Element clone)
 Copies all instance data of the Element to a given Element.
override void ExecuteTask ()
 Generates an assembly manifest.
XmlNode GetAttributeConfigurationNode (FrameworkInfo framework, string attributeName)
 Locates the XML node for the specified attribute in the project configuration node.
override void InitializeElement (XmlNode elementNode)
 <note>Deprecated (to be deleted).</note>
virtual void InitializeTask (XmlNode taskNode)
 Initializes the task.
virtual void InitializeXml (XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework)
 Initializes all build attributes and child elements.
virtual bool NeedsCompiling ()
 Determines whether the assembly manifest needs compiling or is uptodate.
virtual void PrepareProcess (Process process)
 Updates the ProcessStartInfo of the specified Process.
virtual Process StartProcess ()
 Starts the process and handles errors.

Properties

string AlgorithmID [get, set]
 Specifies an algorithm (in hexadecimal) to hash all files in a multifile assembly except the file that contains the assembly manifest. The default algorithm is CALG_SHA1.
virtual ArgumentCollection Arguments [get]
 The command-line arguments for the external program.
virtual DirectoryInfo BaseDirectory [get, set]
 Gets the working directory for the application.
string CommandLine [get]
 Gets the command-line arguments, separated by spaces.
string Company [get, set]
 Specifies a string for the Company field in the assembly.
string Configuration [get, set]
 Specifies a string for the Configuration field in the assembly.
string Copyright [get, set]
 Specifies a string for the Copyright field in the assembly.
string Culture [get, set]
 The culture string associated with the output assembly. The string must be in RFC 1766 format, such as "en-US".
virtual bool CustomXmlProcessing [get]
 Gets a value indicating whether the element is performing additional processing using the XmlNode that was used to initialize the element.
bool DelaySign [get, set]
 Specifies whether the assembly should be partially signed. The default is .
string Description [get, set]
 Specifies a string for the Description field in the assembly.
virtual TextWriter ErrorWriter [get, set]
 Gets or sets the TextWriter to which error output of the external program will be written.
FileInfo EvidenceFile [get, set]
 Security evidence file to embed.
virtual string ExeName [get, set]
 The name of the executable that should be used to launch the external program.
int ExitCode [get]
 Gets the value that the process specified when it terminated.
bool FailOnError [get, set]
 Determines if task failure stops the build, or is just reported. The default is .
string FileVersion [get, set]
 Specifies a string for the File Version field in the assembly.
string Flags [get, set]
 Specifies a value (in hexadecimal) for the Flags field in the assembly.
bool IfDefined [get, set]
 If then the task will be executed; otherwise, skipped. The default is .
string KeyContainer [get, set]
 Specifies a container that holds a key pair.
FileInfo KeyFile [get, set]
 Specifies a file (filename) that contains a key pair or just a public key to sign an assembly.
virtual Location Location [get, set]
 Gets or sets the location in the build file where the element is defined.
string LogPrefix [get]
 The prefix used when sending messages to the log.
string MainMethod [get, set]
 Specifies the fully-qualified name (class.method) of the method to use as an entry point when converting a module to an executable file.
override string Name [get]
 The name of the task.
XmlNamespaceManager NamespaceManager [get, set]
 Gets or sets the XmlNamespaceManager.
virtual FileInfo Output [get, set]
 Gets the file to which the standard output should be redirected.
virtual bool OutputAppend [get, set]
 Gets a value indicating whether output will be appended to the Output.
FileInfo OutputFile [get, set]
 The name of the output file for the assembly manifest.
string OutputTarget [get, set]
 The target type (one of lib, exe, or winexe).
virtual TextWriter OutputWriter [get, set]
 Gets or sets the TextWriter to which standard output messages of the external program will be written.
object Parent [get, set]
 Gets or sets the parent of the element.
string Product [get, set]
 Specifies a string for the Product field in the assembly.
string ProductVersion [get, set]
 Specifies a string for the Product Version field in the assembly.
override string ProgramArguments [get]
 Gets the command-line arguments for the external program.
virtual string ProgramFileName [get]
 Gets the filename of the external program to start.
virtual Project Project [get, set]
 Gets or sets the Project to which this element belongs.
virtual PropertyDictionary Properties [get]
 Gets the properties local to this Element and the Project.
FileSet Resources [get, set]
 The set of resources to embed.
FileInfo TemplateFile [get, set]
 Specifies an assembly from which to get all options except the culture field.
Level Threshold [get, set]
 Gets or sets the log threshold for this Task. By default the threshold of a task matches the threshold of the project.
int TimeOut [get, set]
 The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out.
string Title [get, set]
 Specifies a string for the Title field in the assembly.
string Trademark [get, set]
 Specifies a string for the Trademark field in the assembly.
bool UnlessDefined [get, set]
 Opposite of IfDefined. If then the task will be executed; otherwise, skipped. The default is .
virtual bool UseRuntimeEngine [get, set]
 Specifies whether the external program should be executed using a runtime engine, if configured. The default is .
bool Verbose [get, set]
 Determines whether the task should report detailed build log messages. The default is .
string Version [get, set]
 Specifies version information for the assembly. The format of the version string is major.minor.build.revision.
FileInfo Win32Icon [get, set]
 Icon to associate with the assembly.
FileInfo Win32Res [get, set]
 Inserts a Win32 resource (.res file) in the output file.
virtual XmlNode XmlNode [get, set]
 Gets or sets the XML node of the element.

Private Attributes

string _algorithmID
string _company
string _configuration
string _copyright
string _culture
bool _delaySign
string _description
FileInfo _evidenceFile
string _fileVersion
string _flags
string _keyContainer
FileInfo _keyfile
string _mainMethod
FileInfo _outputFile
string _product
string _productVersion
FileSet _resources = new FileSet()
string _responseFileName
string _target
FileInfo _templateFile
string _title
string _trademark
string _version
FileInfo _win32Icon
FileInfo _win32Res

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index