C# Class NStub.CSharp.CSharpProjectGenerator

The CSharpProjectGenerator class is responsible for writing the XML which will create the project file. This class ensures that all necessary resources as well as all necessary references are properly included.
Inheritance: IProjectGenerator
Exibir arquivo Open project: Jedzia/NStub Class Usage Examples

Public Methods

Method Description
CSharpProjectGenerator ( IBuildSystem buildSystem, string projectName, string outputDirectory ) : System

Initializes a new instance of the CSharpProjectGenerator class within the given projectName which will output to the given outputDirectory.

GenerateProjectFile ( ) : void

Generates the project file. This method is responsible for actually generating the XML which will represent the project as well including all necessary resources and references.

Private Methods

Method Description
AddClassFiles ( ) : void

Adds an ItemGroup to the project file which includes the class files which will be part of the project.

AddDefaultTarget ( ) : void

Writes the default target to the project file.

AddReferencedAssemblies ( ) : void

Adds an ItemGroup to the project file which includes the list of assemblies which will be referenced as part of the project.

WriteDebugConfiguration ( ) : void

Writes a Configuration element to the project file specifying the Debug configuration.

WriteDefaultConfiguration ( ) : void

Writes a Configuration element to the project file specifying the default configuration.

WritePropertyGroupElement ( ) : void

Writes an empty property group element to the project file.

WritePropertyGroupElement ( string configuration, string platform ) : void

Writes a property group element with the given configuration and platform to the project file.

WriteReleaseConfiguration ( ) : void

Writes a Configuration element to the project file specifying the Release configuration.

Method Details

CSharpProjectGenerator() public method

Initializes a new instance of the CSharpProjectGenerator class within the given projectName which will output to the given outputDirectory.
Either or /// is null. Either or /// is empty. /// cannot be found. ApplicationException Directory Cannot Be Found.
public CSharpProjectGenerator ( IBuildSystem buildSystem, string projectName, string outputDirectory ) : System
buildSystem IBuildSystem The build system.
projectName string The name of the project.
outputDirectory string The directory where the project /// will be output.
return System

GenerateProjectFile() public method

Generates the project file. This method is responsible for actually generating the XML which will represent the project as well including all necessary resources and references.
public GenerateProjectFile ( ) : void
return void