C# Класс 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.
Наследование: IProjectGenerator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CSharpProjectGenerator() публичный Метод

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.
Результат System

GenerateProjectFile() публичный Метод

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
Результат void