C# 클래스 XSharp.Build.XSharpCommandLineBuilder

상속: Microsoft.Build.Tasks.CommandLineBuilderExtension
파일 보기 프로젝트 열기: X-Sharp/XSharpPublic 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
GetQuotedText ( string unquotedText ) : string

Returns a quoted string appropriate for appending to a command line.

Escapes any double quotes in the string.

비공개 메소드들

메소드 설명
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

메소드 상세

AppendSwitchIfNotNull() 공개 메소드

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.
public AppendSwitchIfNotNull ( string switchName, ITaskItem parameters, string metadataNames, bool treatAsFlags ) : void
switchName string
parameters ITaskItem
metadataNames string
treatAsFlags bool
리턴 void

GetQuotedText() 보호된 메소드

Returns a quoted string appropriate for appending to a command line.
Escapes any double quotes in the string.
protected GetQuotedText ( string unquotedText ) : string
unquotedText string
리턴 string