C# Class AIT.Tools.VisualStudioTextTransform.DefaultVariableResolver

A default implementation of IVariableResolver returning simple paths.
Inheritance: IVariableResolver
Show file Open project: AITGmbH/VisualStudioTextTransform Class Usage Examples

Public Methods

Method Description
CreateFromDte ( DTE2 dte, string templateFile ) : DefaultVariableResolver

Create a default instance by fetching the paths from the solution.

DefaultVariableResolver ( string projectDir, string solutionDir, string targetDir ) : System

/

ResolveVariable ( string variable ) : IEnumerable

/

SimpleResolveVariable ( string variable ) : string

The simple resolution strategy of this instance.

WithTargetDir ( string targetDir ) : DefaultVariableResolver

Return a new instance with a changed TargetDir.

Method Details

CreateFromDte() public static method

Create a default instance by fetching the paths from the solution.
public static CreateFromDte ( DTE2 dte, string templateFile ) : DefaultVariableResolver
dte DTE2
templateFile string
return DefaultVariableResolver

DefaultVariableResolver() public method

/
public DefaultVariableResolver ( string projectDir, string solutionDir, string targetDir ) : System
projectDir string
solutionDir string
targetDir string
return System

ResolveVariable() public method

/
public ResolveVariable ( string variable ) : IEnumerable
variable string
return IEnumerable

SimpleResolveVariable() public method

The simple resolution strategy of this instance.
public SimpleResolveVariable ( string variable ) : string
variable string
return string

WithTargetDir() public method

Return a new instance with a changed TargetDir.
public WithTargetDir ( string targetDir ) : DefaultVariableResolver
targetDir string
return DefaultVariableResolver