C# Class NuGet.Manifest

Datei anzeigen Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Property Type Description
CheckSchemaVersion void
CreateDependencies List
CreateDependencySet List
CreateFrameworkAssemblies List
CreateReferences List
CreateValidationContext System.ComponentModel.DataAnnotations.ValidationContext
GetCommaSeparatedString string
GetMetadataElement System.Xml.Linq.XElement
GetPackageId string
GetSchemaNamespace string
TryValidate bool
Validate void
ValidateDependencySets void
ValidateDependencyVersion void
ValidateManifestSchema void

Public Methods

Method Description
Create ( IPackageMetadata metadata ) : Manifest
Manifest ( ) : System
ReadFrom ( Stream stream ) : Manifest
ReadFrom ( Stream stream, IPropertyProvider propertyProvider ) : Manifest
Save ( Stream stream ) : void
Save ( Stream stream, bool validate ) : void
Save ( Stream stream, bool validate, int minimumManifestVersion ) : void
Save ( Stream stream, int minimumManifestVersion ) : void

Saves the current manifest to the specified stream.

Private Methods

Method Description
CheckSchemaVersion ( System.Xml.Linq.XDocument document ) : void
CreateDependencies ( ICollection dependencies ) : List
CreateDependencySet ( IPackageMetadata metadata ) : List
CreateFrameworkAssemblies ( IPackageMetadata metadata ) : List
CreateReferences ( IPackageMetadata metadata ) : List
CreateValidationContext ( object value ) : System.ComponentModel.DataAnnotations.ValidationContext
GetCommaSeparatedString ( IEnumerable values ) : string
GetMetadataElement ( System.Xml.Linq.XDocument document ) : System.Xml.Linq.XElement
GetPackageId ( System.Xml.Linq.XElement metadataElement ) : string
GetSchemaNamespace ( System.Xml.Linq.XDocument document ) : string
TryValidate ( object value, ICollection results ) : bool
Validate ( Manifest manifest ) : void
ValidateDependencySets ( IPackageMetadata metadata ) : void
ValidateDependencyVersion ( PackageDependency dependency ) : void
ValidateManifestSchema ( System.Xml.Linq.XDocument document, string schemaNamespace ) : void

Method Details

Create() public static method

public static Create ( IPackageMetadata metadata ) : Manifest
metadata IPackageMetadata
return Manifest

Manifest() public method

public Manifest ( ) : System
return System

ReadFrom() public static method

public static ReadFrom ( Stream stream ) : Manifest
stream Stream
return Manifest

ReadFrom() public static method

public static ReadFrom ( Stream stream, IPropertyProvider propertyProvider ) : Manifest
stream Stream
propertyProvider IPropertyProvider
return Manifest

Save() public method

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

Save() public method

public Save ( Stream stream, bool validate ) : void
stream Stream
validate bool
return void

Save() public method

public Save ( Stream stream, bool validate, int minimumManifestVersion ) : void
stream Stream
validate bool
minimumManifestVersion int
return void

Save() public method

Saves the current manifest to the specified stream.
public Save ( Stream stream, int minimumManifestVersion ) : void
stream Stream The target stream.
minimumManifestVersion int The minimum manifest version that this class must use when saving.
return void