C# 클래스 NugetCracker.Components.CSharp.CSharpProject

상속: IProject
파일 보기 프로젝트 열기: monoman/NugetCracker

보호된 프로퍼티들

프로퍼티 타입 설명
_assemblyInfoPath string
_assemblyName string
_isWeb bool
_projectDir string
_targetFrameworkVersion string

Private Properties

프로퍼티 타입 설명
AddNuspecToProject void
AddSingleLibReference string
AddToPackagesConfig void
AdjustNuspec void
CreateDirectory string
DisableNugetPowerToolsActions string
DoAddNuget void
ExtractProjectProperty string
FindPackagesDir string
GetListForTag IEnumerable
GetListOfReferencedLibraries IEnumerable
GetListOfReferencedProjects IEnumerable
GetListOfSources IEnumerable
IsEqual bool
ParseAssemblyInfoFile bool
ParseProjectFile void
ProcessBuildOutput void
TranslateType string
UpdatePackagesConfig void

공개 메소드들

메소드 설명
AddNoneFile ( string xml, string fileToAdd ) : string
AddNuget ( ILogger logger, INugetSpec nugetComponent, IComponentFinder components, string packagesOutputDirectory ) : bool
AddParent ( ISolution solution ) : void
AdjustElements ( string xml, string tags, string licenseUrl, string projectUrl, string iconUrl, string copyright, bool requireLicenseAcceptance ) : string
Build ( ILogger logger ) : bool
CSharpProject ( string projectFileFullPath ) : System
DeployTo ( ILogger logger, string path ) : bool
Equals ( IReference other ) : bool
Equals ( object obj ) : bool
FixPackageReference ( string xml, string packageName, string version, string platform ) : string
GetHashCode ( ) : int
InstallPackageDependencyFromSources ( ILogger logger, IReference dependency, string sourceDirectories = null, bool force = false ) : bool
MatchName ( string pattern ) : bool
PartToCascadeBump ( VersionPart partBumpedOnDependency ) : VersionPart
PromoteToNuget ( ILogger logger, string outputDirectory, string tags, string licenseUrl = null, string projectUrl = null, string iconUrl = null, string copyright = null, bool requireLicenseAcceptance = false ) : IComponent
RemoveParent ( ISolution solution ) : void
ReplaceProjectByNuget ( string xml, string packageName, string assemblyName, string framework, string installedPackagesDir ) : string
ReplaceProjectByNuget ( INugetSpec package, string assemblyName, string framework ) : void
ReplaceProjectReference ( ILogger logger, INugetSpec package, string assemblyName, string framework, ICollection installDirs ) : bool
SetNewVersion ( ILogger logger, System.Version version ) : bool
ToLongString ( ) : string
ToString ( ) : string
UpgradePackageDependency ( ILogger logger, IComponent newPackage, string sourceDirectory, ICollection installDirs ) : bool

보호된 메소드들

메소드 설명
GetProjectName ( string projectFileFullPath ) : string
ParseAssemblyInfo ( IEnumerable sourceFilesList ) : void
ParseAvailableData ( ) : void
ParsePackagesFile ( ) : void
UpdatePackageReferencesOnProject ( ILogger logger, IReference newPackage ) : void

비공개 메소드들

메소드 설명
AddNuspecToProject ( string nuspec ) : void
AddSingleLibReference ( string xml, string packageName, string assemblyName, string framework, string installedPackagesDir ) : string
AddToPackagesConfig ( IComponent newPackage, string packagesFile ) : void
AdjustNuspec ( string nuspec, string tags, string licenseUrl, string projectUrl, string iconUrl, string copyright, bool requireLicenseAcceptance ) : void
CreateDirectory ( string dir ) : string
DisableNugetPowerToolsActions ( string xml ) : string
DoAddNuget ( ILogger logger, INugetSpec nugetComponent, IComponentFinder components, string packagesOutputDirectory, bool firstlevel ) : void
ExtractProjectProperty ( System.Xml.Linq.XDocument project, System.Xml.Linq.XName name, string @default ) : string
FindPackagesDir ( string dir ) : string
GetListForTag ( System.Xml.Linq.XDocument project, System.Xml.Linq.XNamespace nm, string tagName ) : IEnumerable
GetListOfReferencedLibraries ( System.Xml.Linq.XDocument project, System.Xml.Linq.XNamespace nm ) : IEnumerable
GetListOfReferencedProjects ( System.Xml.Linq.XDocument project, System.Xml.Linq.XNamespace nm ) : IEnumerable
GetListOfSources ( System.Xml.Linq.XDocument project, System.Xml.Linq.XNamespace nm ) : IEnumerable
IsEqual ( IReference other ) : bool
ParseAssemblyInfoFile ( string sourcePath ) : bool
ParseProjectFile ( ) : void
ProcessBuildOutput ( ILogger logger, string line ) : void
TranslateType ( bool usesNUnit, string targetType ) : string
UpdatePackagesConfig ( IComponent newPackage, string packagesFile ) : void

메소드 상세

AddNoneFile() 공개 정적인 메소드

public static AddNoneFile ( string xml, string fileToAdd ) : string
xml string
fileToAdd string
리턴 string

AddNuget() 공개 메소드

public AddNuget ( ILogger logger, INugetSpec nugetComponent, IComponentFinder components, string packagesOutputDirectory ) : bool
logger ILogger
nugetComponent INugetSpec
components IComponentFinder
packagesOutputDirectory string
리턴 bool

AddParent() 공개 메소드

public AddParent ( ISolution solution ) : void
solution ISolution
리턴 void

AdjustElements() 공개 정적인 메소드

public static AdjustElements ( string xml, string tags, string licenseUrl, string projectUrl, string iconUrl, string copyright, bool requireLicenseAcceptance ) : string
xml string
tags string
licenseUrl string
projectUrl string
iconUrl string
copyright string
requireLicenseAcceptance bool
리턴 string

Build() 공개 메소드

public Build ( ILogger logger ) : bool
logger ILogger
리턴 bool

CSharpProject() 공개 메소드

public CSharpProject ( string projectFileFullPath ) : System
projectFileFullPath string
리턴 System

DeployTo() 공개 메소드

public DeployTo ( ILogger logger, string path ) : bool
logger ILogger
path string
리턴 bool

Equals() 공개 메소드

public Equals ( IReference other ) : bool
other IReference
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FixPackageReference() 공개 정적인 메소드

public static FixPackageReference ( string xml, string packageName, string version, string platform ) : string
xml string
packageName string
version string
platform string
리턴 string

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetProjectName() 보호된 메소드

protected GetProjectName ( string projectFileFullPath ) : string
projectFileFullPath string
리턴 string

InstallPackageDependencyFromSources() 공개 메소드

public InstallPackageDependencyFromSources ( ILogger logger, IReference dependency, string sourceDirectories = null, bool force = false ) : bool
logger ILogger
dependency IReference
sourceDirectories string
force bool
리턴 bool

MatchName() 공개 메소드

public MatchName ( string pattern ) : bool
pattern string
리턴 bool

ParseAssemblyInfo() 보호된 메소드

protected ParseAssemblyInfo ( IEnumerable sourceFilesList ) : void
sourceFilesList IEnumerable
리턴 void

ParseAvailableData() 보호된 메소드

protected ParseAvailableData ( ) : void
리턴 void

ParsePackagesFile() 보호된 메소드

protected ParsePackagesFile ( ) : void
리턴 void

PartToCascadeBump() 공개 메소드

public PartToCascadeBump ( VersionPart partBumpedOnDependency ) : VersionPart
partBumpedOnDependency VersionPart
리턴 VersionPart

PromoteToNuget() 공개 메소드

public PromoteToNuget ( ILogger logger, string outputDirectory, string tags, string licenseUrl = null, string projectUrl = null, string iconUrl = null, string copyright = null, bool requireLicenseAcceptance = false ) : IComponent
logger ILogger
outputDirectory string
tags string
licenseUrl string
projectUrl string
iconUrl string
copyright string
requireLicenseAcceptance bool
리턴 IComponent

RemoveParent() 공개 메소드

public RemoveParent ( ISolution solution ) : void
solution ISolution
리턴 void

ReplaceProjectByNuget() 공개 정적인 메소드

public static ReplaceProjectByNuget ( string xml, string packageName, string assemblyName, string framework, string installedPackagesDir ) : string
xml string
packageName string
assemblyName string
framework string
installedPackagesDir string
리턴 string

ReplaceProjectByNuget() 공개 메소드

public ReplaceProjectByNuget ( INugetSpec package, string assemblyName, string framework ) : void
package INugetSpec
assemblyName string
framework string
리턴 void

ReplaceProjectReference() 공개 메소드

public ReplaceProjectReference ( ILogger logger, INugetSpec package, string assemblyName, string framework, ICollection installDirs ) : bool
logger ILogger
package INugetSpec
assemblyName string
framework string
installDirs ICollection
리턴 bool

SetNewVersion() 공개 메소드

public SetNewVersion ( ILogger logger, System.Version version ) : bool
logger ILogger
version System.Version
리턴 bool

ToLongString() 공개 메소드

public ToLongString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

UpdatePackageReferencesOnProject() 보호된 메소드

protected UpdatePackageReferencesOnProject ( ILogger logger, IReference newPackage ) : void
logger ILogger
newPackage IReference
리턴 void

UpgradePackageDependency() 공개 메소드

public UpgradePackageDependency ( ILogger logger, IComponent newPackage, string sourceDirectory, ICollection installDirs ) : bool
logger ILogger
newPackage IComponent
sourceDirectory string
installDirs ICollection
리턴 bool

프로퍼티 상세

_assemblyInfoPath 보호되어 있는 프로퍼티

protected string _assemblyInfoPath
리턴 string

_assemblyName 보호되어 있는 프로퍼티

protected string _assemblyName
리턴 string

_isWeb 보호되어 있는 프로퍼티

protected bool _isWeb
리턴 bool

_projectDir 보호되어 있는 프로퍼티

protected string _projectDir
리턴 string

_targetFrameworkVersion 보호되어 있는 프로퍼티

protected string _targetFrameworkVersion
리턴 string