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
파일 보기 프로젝트 열기: Jedzia/NStub 1 사용 예제들

공개 메소드들

메소드 설명
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