C# Класс NAnt.VSNet.ManagedProjectBase

Наследование: ProjectBase
Показать файл Открыть проект Примеры использования класса

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