C# 클래스 NAnt.VSNet.ManagedProjectBase

상속: ProjectBase
파일 보기 프로젝트 열기: skolima/NAnt 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CheckUpToDate bool
CompileResXFiles void
CreateRegAsmTask NAnt.Win32.Tasks.RegAsmTask
GetLocalizedResources System.Collections.Hashtable
GetTypeLibraryPath string
LoadGuid string
PostBuild bool
PreBuild bool
RegisterEmbeddedResource void
RegisterForComInterop void
UnregisterForComInterop void
WriteNeutralResourceOptions void

공개 메소드들

메소드 설명
CreateProjectReference ( ProjectBase project, bool isPrivateSpecified, bool isPrivate ) : ProjectReferenceBase
GetOutputFiles ( NAnt.VSNet.Configuration solutionConfiguration, Hashtable outputFiles ) : void

Gets the complete set of output files for the project configuration matching the specified solution configuration.

The key of the case-insensitive Hashtable is the full path of the output file and the value is the path relative to the output directory.

If the project is not configured to be built for the specified solution configuration, then no output files are added.

IsEnterpriseTemplateProject ( string fileName ) : bool
IsManaged ( NAnt.VSNet.Configuration solutionConfiguration ) : bool

Gets a value indicating whether building the project for the specified build configuration results in managed output.

LoadGuid ( XmlElement xmlDefinition ) : string

보호된 메소드들

메소드 설명
Build ( NAnt.VSNet.Configuration solutionConfiguration ) : BuildResult
CreateReference ( SolutionBase solution, XmlElement xmlDefinition ) : ReferenceBase
DetermineProjectLocation ( XmlElement docElement ) : ProjectLocation

Returns the project location from the specified project XML fragment.

GetProcessStartInfo ( NAnt.VSNet.ConfigurationBase config, string responseFile ) : ProcessStartInfo

Returns a ProcessStartInfo for launching the compiler for this project.

GetProductVersion ( XmlNode projectNode ) : ProductVersion

Returns the Visual Studio product version of the specified project XML fragment.

GetProjectLocation ( XmlNode projectNode ) : ProjectLocation

Returns the ProjectLocation of the specified project XML fragment.

ManagedProjectBase ( SolutionBase solution, string projectPath, XmlElement xmlDefinition, NAnt.VSNet.Tasks.SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir ) : System
Prepare ( NAnt.VSNet.Configuration solutionConfiguration ) : void

Prepares the project for being built.

Ensures the configuration-level object directory exists and ensures that none of the output files are marked read-only.

WriteCompilerOptions ( StreamWriter sw, NAnt.VSNet.Configuration solutionConfiguration ) : void
WriteProjectOptions ( StreamWriter sw ) : void

비공개 메소드들

메소드 설명
CheckUpToDate ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
CompileResXFiles ( NAnt.VSNet.Configuration solutionConfiguration ) : void
CreateRegAsmTask ( ) : RegAsmTask

Creates and initializes a RegAsmTask instance.

GetLocalizedResources ( ) : Hashtable

Returns Hashtable containing culture-specific resources.

The key of the Hashtable is CultureInfo and the value is an LocalizedResourceSet instance for that culture.

GetTypeLibraryPath ( ConfigurationSettings config ) : string

Gets the absolute path of the type library for the project output.

LoadGuid ( XmlReader guidReader ) : string
PostBuild ( ConfigurationSettings cs, bool bCompileSuccess, bool bOutputUpdated ) : bool
PreBuild ( ConfigurationSettings cs ) : bool
RegisterEmbeddedResource ( string resourceFile, XmlElement elemFile ) : void
RegisterForComInterop ( ConfigurationSettings config, NAnt.VSNet.Configuration solutionConfiguration, string typelibPath ) : void

Generates a type library for the specified assembly, registers it.

The regasm tool is used to generate the type library.

UnregisterForComInterop ( ConfigurationSettings config, NAnt.VSNet.Configuration solutionConfiguration ) : void

Unregister a type library for the specified assembly, and the types in that assembly.

The regasm tool is used to unregister the type library, and remove the COM registration for types in the specified assembly.

WriteNeutralResourceOptions ( StreamWriter sw, NAnt.VSNet.Configuration solutionConfiguration ) : void

메소드 상세

Build() 보호된 메소드

protected Build ( NAnt.VSNet.Configuration solutionConfiguration ) : BuildResult
solutionConfiguration NAnt.VSNet.Configuration
리턴 BuildResult

CreateProjectReference() 공개 메소드

public CreateProjectReference ( ProjectBase project, bool isPrivateSpecified, bool isPrivate ) : ProjectReferenceBase
project ProjectBase
isPrivateSpecified bool
isPrivate bool
리턴 ProjectReferenceBase

CreateReference() 보호된 메소드

protected CreateReference ( SolutionBase solution, XmlElement xmlDefinition ) : ReferenceBase
solution SolutionBase
xmlDefinition System.Xml.XmlElement
리턴 ReferenceBase

DetermineProjectLocation() 보호된 추상적인 메소드

Returns the project location from the specified project XML fragment.
/// The project location could not be determined. /// -or- /// The project location is invalid. ///
protected abstract DetermineProjectLocation ( XmlElement docElement ) : ProjectLocation
docElement System.Xml.XmlElement XML fragment representing the project file.
리턴 ProjectLocation

GetOutputFiles() 공개 메소드

Gets the complete set of output files for the project configuration matching the specified solution configuration.

The key of the case-insensitive Hashtable is the full path of the output file and the value is the path relative to the output directory.

If the project is not configured to be built for the specified solution configuration, then no output files are added.

public GetOutputFiles ( NAnt.VSNet.Configuration solutionConfiguration, Hashtable outputFiles ) : void
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
outputFiles System.Collections.Hashtable The set of output files to be updated.
리턴 void

GetProcessStartInfo() 보호된 추상적인 메소드

Returns a ProcessStartInfo for launching the compiler for this project.
protected abstract GetProcessStartInfo ( NAnt.VSNet.ConfigurationBase config, string responseFile ) : ProcessStartInfo
config NAnt.VSNet.ConfigurationBase The configuration to build.
responseFile string The response file for the compiler.
리턴 System.Diagnostics.ProcessStartInfo

GetProductVersion() 보호된 정적인 메소드

Returns the Visual Studio product version of the specified project XML fragment.
/// The product version could not be determined. /// -or- /// The product version is not supported. ///
protected static GetProductVersion ( XmlNode projectNode ) : ProductVersion
projectNode System.Xml.XmlNode XML fragment representing the project to check.
리턴 ProductVersion

GetProjectLocation() 보호된 정적인 메소드

Returns the ProjectLocation of the specified project XML fragment.
/// The project location could not be determined. /// -or- /// The project location is invalid. ///
protected static GetProjectLocation ( XmlNode projectNode ) : ProjectLocation
projectNode System.Xml.XmlNode XML fragment representing the project to check.
리턴 ProjectLocation

IsEnterpriseTemplateProject() 공개 정적인 메소드

public static IsEnterpriseTemplateProject ( string fileName ) : bool
fileName string
리턴 bool

IsManaged() 공개 메소드

Gets a value indicating whether building the project for the specified build configuration results in managed output.
public IsManaged ( NAnt.VSNet.Configuration solutionConfiguration ) : bool
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
리턴 bool

LoadGuid() 공개 정적인 메소드

public static LoadGuid ( XmlElement xmlDefinition ) : string
xmlDefinition System.Xml.XmlElement
리턴 string

ManagedProjectBase() 보호된 메소드

protected ManagedProjectBase ( SolutionBase solution, string projectPath, XmlElement xmlDefinition, NAnt.VSNet.Tasks.SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir ) : System
solution SolutionBase
projectPath string
xmlDefinition System.Xml.XmlElement
solutionTask NAnt.VSNet.Tasks.SolutionTask
tfc System.CodeDom.Compiler.TempFileCollection
gacCache NAnt.Core.Util.GacCache
refResolver ReferencesResolver
outputDir System.IO.DirectoryInfo
리턴 System

Prepare() 보호된 메소드

Prepares the project for being built.
Ensures the configuration-level object directory exists and ensures that none of the output files are marked read-only.
protected Prepare ( NAnt.VSNet.Configuration solutionConfiguration ) : void
solutionConfiguration NAnt.VSNet.Configuration The solution configuration that is built.
리턴 void

WriteCompilerOptions() 보호된 메소드

protected WriteCompilerOptions ( StreamWriter sw, NAnt.VSNet.Configuration solutionConfiguration ) : void
sw System.IO.StreamWriter
solutionConfiguration NAnt.VSNet.Configuration
리턴 void

WriteProjectOptions() 보호된 메소드

protected WriteProjectOptions ( StreamWriter sw ) : void
sw System.IO.StreamWriter
리턴 void