C# 클래스 AIT.Tools.VisualStudioTextTransform.VisualStudioTextTemplateHost

See https://msdn.microsoft.com/en-us/library/bb126579.aspx for more details
상속: ITextTemplatingEngineHost, IServiceProvider
파일 보기 프로젝트 열기: AITGmbH/VisualStudioTextTransform 1 사용 예제들

공개 메소드들

메소드 설명
GetHostOption ( string optionName ) : object

Called by the Engine to enquire about the processing options you require. If you recognize that option, return an appropriate value. Otherwise, pass back NULL.

GetService ( Type serviceType ) : object

/

LoadIncludeText ( string requestFileName, string &content, string &location ) : bool

The engine calls this method based on the optional include directive if the user has specified it in the text template.

LogErrors ( CompilerErrorCollection errors ) : void

/

ProvideTemplatingAppDomain ( string content ) : AppDomain

/

ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string

If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.

ResolvePath ( string path ) : string

A directive processor can call this method if a file name does not have a path. The host can attempt to provide path information by searching specific paths for the file and returning the file and path if found. This method can be called 0, 1, or more times.

SetFileExtension ( string extension ) : void

/

SetOutputEncoding ( Encoding encoding, bool fromOutputDirective ) : void

/

VisualStudioTextTemplateHost ( string templateFile, DTE2 dte, IVariableResolver resolver ) : System

/

비공개 메소드들

메소드 설명
PossibleFullPaths ( string path ) : IEnumerable
ReplaceProjectVar ( string path, string variable ) : IEnumerable
ReplaceProjectVarsPrivate ( string path ) : IEnumerable
ResolveAllPathsPrivate ( string path ) : IEnumerable
ResolveAssemblyReference ( string assemblyReference ) : string
ResolveDirectiveProcessor ( string processorName ) : Type
ResolveFilePathPrivate ( string path ) : string

메소드 상세

GetHostOption() 공개 메소드

Called by the Engine to enquire about the processing options you require. If you recognize that option, return an appropriate value. Otherwise, pass back NULL.
public GetHostOption ( string optionName ) : object
optionName string
리턴 object

GetService() 공개 메소드

/
public GetService ( Type serviceType ) : object
serviceType System.Type
리턴 object

LoadIncludeText() 공개 메소드

The engine calls this method based on the optional include directive if the user has specified it in the text template.
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool
requestFileName string
content string
location string
리턴 bool

LogErrors() 공개 메소드

/
public LogErrors ( CompilerErrorCollection errors ) : void
errors System.CodeDom.Compiler.CompilerErrorCollection
리턴 void

ProvideTemplatingAppDomain() 공개 메소드

/
public ProvideTemplatingAppDomain ( string content ) : AppDomain
content string
리턴 System.AppDomain

ResolveParameterValue() 공개 메소드

If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.
public ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string
directiveId string
processorName string
parameterName string
리턴 string

ResolvePath() 공개 메소드

A directive processor can call this method if a file name does not have a path. The host can attempt to provide path information by searching specific paths for the file and returning the file and path if found. This method can be called 0, 1, or more times.
public ResolvePath ( string path ) : string
path string
리턴 string

SetFileExtension() 공개 메소드

/
public SetFileExtension ( string extension ) : void
extension string
리턴 void

SetOutputEncoding() 공개 메소드

/
public SetOutputEncoding ( Encoding encoding, bool fromOutputDirective ) : void
encoding System.Text.Encoding
fromOutputDirective bool
리턴 void

VisualStudioTextTemplateHost() 공개 메소드

/
public VisualStudioTextTemplateHost ( string templateFile, DTE2 dte, IVariableResolver resolver ) : System
templateFile string
dte DTE2
resolver IVariableResolver
리턴 System