C# Class NAnt.MSBuild.MSBuildProject

Inheritance: NAnt.VSNet.ProjectBase
Mostra file Open project: skolima/NAnt Class Usage Examples

Private Properties

Property Type Description
IsUrl bool
LoadGuid string

Public Methods

Method Description
CreateProjectReference ( ProjectBase project, bool isPrivateSpecified, bool isPrivate ) : ProjectReferenceBase
IsMSBuildProject ( XmlDocument doc ) : bool
IsMSBuildProject ( XmlElement e ) : bool
IsManaged ( NAnt.VSNet.Configuration configuration ) : bool
LoadGuid ( XmlDocument doc ) : string
LoadGuid ( XmlElement e ) : string
MSBuildProject ( SolutionBase solution, string projectPath, XmlElement xmlDefinition, NAnt.VSNet.Tasks.SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir ) : System

Protected Methods

Method Description
Build ( NAnt.VSNet.Configuration solutionConfiguration ) : BuildResult
DetermineProductVersion ( System docElement ) : ProductVersion

Determines the version of the target msbuild file.

This method identifies the msbuild version by reviewing the following tags in order:

<ProductVersion> <TargetFrameworkVersion> ToolsVersion attribute
VerifyProjectXml ( System docElement ) : void

Private Methods

Method Description
IsUrl ( string fileName ) : bool
LoadGuid ( XmlElement e, XmlNamespaceManager nm ) : string

Method Details

Build() protected method

protected Build ( NAnt.VSNet.Configuration solutionConfiguration ) : BuildResult
solutionConfiguration NAnt.VSNet.Configuration
return BuildResult

CreateProjectReference() public method

public CreateProjectReference ( ProjectBase project, bool isPrivateSpecified, bool isPrivate ) : ProjectReferenceBase
project NAnt.VSNet.ProjectBase
isPrivateSpecified bool
isPrivate bool
return NAnt.VSNet.ProjectReferenceBase

DetermineProductVersion() protected method

Determines the version of the target msbuild file.

This method identifies the msbuild version by reviewing the following tags in order:

<ProductVersion> <TargetFrameworkVersion> ToolsVersion attribute
/// version string found in the tags listed above is not recognized. ///
protected DetermineProductVersion ( System docElement ) : ProductVersion
docElement System /// A representing the msbuild project file. ///
return ProductVersion

IsMSBuildProject() public static method

public static IsMSBuildProject ( XmlDocument doc ) : bool
doc System.Xml.XmlDocument
return bool

IsMSBuildProject() public static method

public static IsMSBuildProject ( XmlElement e ) : bool
e System.Xml.XmlElement
return bool

IsManaged() public method

public IsManaged ( NAnt.VSNet.Configuration configuration ) : bool
configuration NAnt.VSNet.Configuration
return bool

LoadGuid() public static method

public static LoadGuid ( XmlDocument doc ) : string
doc System.Xml.XmlDocument
return string

LoadGuid() public static method

public static LoadGuid ( XmlElement e ) : string
e System.Xml.XmlElement
return string

MSBuildProject() public method

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

VerifyProjectXml() protected method

protected VerifyProjectXml ( System docElement ) : void
docElement System
return void