BaseCodeGenerator Class
A managed wrapper for VS's concept of an IVsSingleFileGenerator which is a custom tool invoked during the build which can take any file as an input and provide a compilable code file as output.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGenerator
Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.11.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.11.0.dll)
Syntax
'Declaration
Public MustInherit Class BaseCodeGenerator _
Implements IVsSingleFileGenerator, IDisposable
public abstract class BaseCodeGenerator : IVsSingleFileGenerator,
IDisposable
public ref class BaseCodeGenerator abstract : IVsSingleFileGenerator,
IDisposable
[<AbstractClass>]
type BaseCodeGenerator =
class
interface IVsSingleFileGenerator
interface IDisposable
end
public abstract class BaseCodeGenerator implements IVsSingleFileGenerator, IDisposable
The BaseCodeGenerator type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BaseCodeGenerator |
Top
Properties
Name | Description | |
---|---|---|
FileNamespace | namespace for the file. | |
InputFilePath | file-path for the input file. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Releases all resources used by this instance. | |
Dispose(Boolean) | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | (Overrides Object.Finalize.) | |
Generate | ||
GenerateCode | ||
GeneratorErrorCallback | ||
GetDefaultExtension | gets the default extension for this generator | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IVsSingleFileGenerator.DefaultExtension | ||
IVsSingleFileGenerator.Generate |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.