Method | Description | |
---|---|---|
AppendSwitchIfNotNull ( string switchName, ITaskItem parameters, string metadataNames, bool treatAsFlags ) : void |
Designed to handle the /link and /embed switches: /embed[resource]:<filename>[,<name>[,Private]] /link[resource]:<filename>[,<name>[,Private]] Where the last flag--Private--is either present or not present depending on whether the ITaskItem has a Private="True" attribute.
|
Method | Description | |
---|---|---|
GetQuotedText ( string unquotedText ) : string |
Returns a quoted string appropriate for appending to a command line. Escapes any double quotes in the string. |
Method | Description | |
---|---|---|
AppendByChoiceSwitch ( string switchName, System bag, string parameterName, string choice1, string choice2 ) : void |
Set a switch if its value exists by choosing from the input choices
|
|
AppendNestedSwitch ( string outerSwitchName, string innerSwitchName, string parameter ) : void |
Adds a nested switch, used by SGen.exe. For example: /compiler:"/keyfile:\"c:\some folder\myfile.snk\""
|
|
AppendPlusOrMinusSwitch ( string switchName, System bag, string parameterName ) : void |
Set a boolean switch only if its value exists.
|
|
AppendSwitchAliased ( string switchName, string alias, string parameter ) : void |
Adds an aliased switch, used for ResGen: /reference:Foo=System.Xml.dll
|
|
AppendSwitchIfNotNull ( string switchName, ITaskItem parameters, string attributes ) : void |
Appends a command-line switch that takes a compound string parameter. The parameter is built up from the item-spec and the specified attributes. The switch is appended as many times as there are parameters given.
|
|
AppendSwitchWithInteger ( string switchName, System bag, string parameterName ) : void |
Set an integer switch only if its value exists.
|
|
AppendSwitchWithSplitting ( string switchName, string parameter, string delimiter ) : void |
Append a switch if 'parameter' is not null. Split on the characters provided.
|
|
AppendWhenTrue ( string switchName, System bag, string parameterName ) : void | ||
XSharpCommandLineBuilder ( ) : System |
public AppendSwitchIfNotNull ( string switchName, ITaskItem parameters, string metadataNames, bool treatAsFlags ) : void | ||
switchName | string | |
parameters | ITaskItem | |
metadataNames | string | |
treatAsFlags | bool | |
return | void |
protected GetQuotedText ( string unquotedText ) : string | ||
unquotedText | string | |
return | string |