C# Class XSharp.Build.NativeResourceCompiler

Inheritance: Microsoft.Build.Utilities.ToolTask
Mostra file Open project: X-Sharp/XSharpPublic

Private Properties

Property Type Description
Execute bool
FindRc string
NativeResourceCompiler Microsoft.Build.Framework

Protected Methods

Method Description
ExecuteTool ( string pathToTool, string responseFileCommands, string commandLineCommands ) : int
FilesAreNewer ( List fileNames, string outputFileName ) : bool

Check a list of files and their included files to see if they are newer than the output file name

GenerateCommandLineCommands ( ) : string

/i = include directory /fo = output directory /v = verbose (output only shown with diagnostic logging) /d DEBUG for conditional compilation rest is passed through a response file

GenerateFullPathToTool ( ) : string
GenerateResponseFileCommands ( ) : string

Response file contains list of #include statements. All resources must be compiled as one virtual large file. We can only include one native resource

GetResponseFileSwitch ( string responseFilePath ) : string
GetWorkingDirectory ( ) : string
LogToolCommand ( string message ) : void
SkipTaskExecution ( ) : bool

Task does not have to run when the ouput file exists and is newer than the source files

ValidateParameters ( ) : bool

Check to see if all mandatory parameters are filled

Private Methods

Method Description
Execute ( ) : bool
FindRc ( string toolName ) : string
NativeResourceCompiler ( ) : Microsoft.Build.Framework

Read XSharp Installation location from the Registry

Method Details

ExecuteTool() protected method

protected ExecuteTool ( string pathToTool, string responseFileCommands, string commandLineCommands ) : int
pathToTool string
responseFileCommands string
commandLineCommands string
return int

FilesAreNewer() protected method

Check a list of files and their included files to see if they are newer than the output file name
protected FilesAreNewer ( List fileNames, string outputFileName ) : bool
fileNames List List of files
outputFileName string outputFileName
return bool

GenerateCommandLineCommands() protected method

/i = include directory /fo = output directory /v = verbose (output only shown with diagnostic logging) /d DEBUG for conditional compilation rest is passed through a response file
protected GenerateCommandLineCommands ( ) : string
return string

GenerateFullPathToTool() protected method

protected GenerateFullPathToTool ( ) : string
return string

GenerateResponseFileCommands() protected method

Response file contains list of #include statements. All resources must be compiled as one virtual large file. We can only include one native resource
protected GenerateResponseFileCommands ( ) : string
return string

GetResponseFileSwitch() protected method

protected GetResponseFileSwitch ( string responseFilePath ) : string
responseFilePath string
return string

GetWorkingDirectory() protected method

protected GetWorkingDirectory ( ) : string
return string

LogToolCommand() protected method

protected LogToolCommand ( string message ) : void
message string
return void

SkipTaskExecution() protected method

Task does not have to run when the ouput file exists and is newer than the source files
protected SkipTaskExecution ( ) : bool
return bool

ValidateParameters() protected method

Check to see if all mandatory parameters are filled
protected ValidateParameters ( ) : bool
return bool