C# Class NuGet.PackageBuilder

Inheritance: IPackageBuilder
Show file Open project: NuGetPackageExplorer/NuGetPackageExplorer Class Usage Examples

Private Properties

Property Type Description
AddFiles void
CreatePart void
DetermineMinimumSchemaVersion int
ExcludeFiles void
HasXdtTransformFile bool
IsPrereleaseDependency bool
ParseTags IEnumerable
ReadManifest void
RequiresV4TargetFrameworkSchema bool
ValidateDependencySets void
ValidateReferenceAssemblies void
WriteFiles void
WriteManifest void

Public Methods

Method Description
Build ( ) : IPackage
PackageBuilder ( ) : System
PackageBuilder ( Stream stream, string basePath ) : System
PackageBuilder ( string path ) : System
PackageBuilder ( string path, string basePath ) : System
Save ( Stream stream ) : void

Private Methods

Method Description
AddFiles ( string basePath, string source, string destination, string exclude = null ) : void
CreatePart ( Package package, string path, Stream sourceStream ) : void
DetermineMinimumSchemaVersion ( Collection Files ) : int
ExcludeFiles ( List searchFiles, string basePath, string exclude ) : void
HasXdtTransformFile ( ICollection contentFiles ) : bool
IsPrereleaseDependency ( PackageDependency dependency ) : bool
ParseTags ( string tags ) : IEnumerable

Tags come in this format. tag1 tag2 tag3 etc..

ReadManifest ( Stream stream, string basePath ) : void
RequiresV4TargetFrameworkSchema ( ICollection files ) : bool
ValidateDependencySets ( SemanticVersion version, IEnumerable dependencies ) : void
ValidateReferenceAssemblies ( IEnumerable files, IEnumerable packageAssemblyReferences ) : void
WriteFiles ( Package package ) : void
WriteManifest ( Package package, int minimumManifestVersion ) : void

Method Details

Build() public method

public Build ( ) : IPackage
return IPackage

PackageBuilder() public method

public PackageBuilder ( ) : System
return System

PackageBuilder() public method

public PackageBuilder ( Stream stream, string basePath ) : System
stream Stream
basePath string
return System

PackageBuilder() public method

public PackageBuilder ( string path ) : System
path string
return System

PackageBuilder() public method

public PackageBuilder ( string path, string basePath ) : System
path string
basePath string
return System

Save() public method

public Save ( Stream stream ) : void
stream Stream
return void