Class PackageBuilder
public class PackageBuilder : IPackageMetadata
- Inheritance
-
PackageBuilder
- Implements
- Inherited Members
Constructors
PackageBuilder()
public PackageBuilder()
PackageBuilder(bool)
public PackageBuilder(bool deterministic)
Parameters
deterministic
bool
PackageBuilder(bool, ILogger)
public PackageBuilder(bool deterministic, ILogger logger)
Parameters
deterministic
boollogger
ILogger
PackageBuilder(Stream, string)
public PackageBuilder(Stream stream, string basePath)
Parameters
PackageBuilder(Stream, string, Func<string, string>)
public PackageBuilder(Stream stream, string basePath, Func<string, string> propertyProvider)
Parameters
PackageBuilder(string, Func<string, string>, bool)
public PackageBuilder(string path, Func<string, string> propertyProvider, bool includeEmptyDirectories)
Parameters
PackageBuilder(string, Func<string, string>, bool, bool)
public PackageBuilder(string path, Func<string, string> propertyProvider, bool includeEmptyDirectories, bool deterministic)
Parameters
PackageBuilder(string, Func<string, string>, bool, bool, ILogger)
public PackageBuilder(string path, Func<string, string> propertyProvider, bool includeEmptyDirectories, bool deterministic, ILogger logger)
Parameters
path
stringpropertyProvider
Func<string, string>includeEmptyDirectories
booldeterministic
boollogger
ILogger
PackageBuilder(string, string, Func<string, string>, bool)
public PackageBuilder(string path, string basePath, Func<string, string> propertyProvider, bool includeEmptyDirectories)
Parameters
PackageBuilder(string, string, Func<string, string>, bool, bool)
public PackageBuilder(string path, string basePath, Func<string, string> propertyProvider, bool includeEmptyDirectories, bool deterministic)
Parameters
path
stringbasePath
stringpropertyProvider
Func<string, string>includeEmptyDirectories
booldeterministic
bool
PackageBuilder(string, string, Func<string, string>, bool, bool, ILogger)
public PackageBuilder(string path, string basePath, Func<string, string> propertyProvider, bool includeEmptyDirectories, bool deterministic, ILogger logger)
Parameters
path
stringbasePath
stringpropertyProvider
Func<string, string>includeEmptyDirectories
booldeterministic
boollogger
ILogger
Fields
MaxIconFileSize
Maximum Icon file size: 1 megabyte
public const int MaxIconFileSize = 1048576
Field Value
Properties
Authors
public ISet<string> Authors { get; }
Property Value
BugTrackerUrl
public Uri BugTrackerUrl { get; set; }
Property Value
- Uri
Conflicts
public ISet<string> Conflicts { get; set; }
Property Value
ContentFiles
ContentFiles section from the manifest for content v2
public ICollection<ManifestContentFiles> ContentFiles { get; }
Property Value
Copyright
public string Copyright { get; set; }
Property Value
DependencyGroups
public Collection<PackageDependencyGroup> DependencyGroups { get; }
Property Value
Description
public string Description { get; set; }
Property Value
DevelopmentDependency
public bool DevelopmentDependency { get; set; }
Property Value
DocsUrl
public Uri DocsUrl { get; set; }
Property Value
- Uri
EmitRequireLicenseAcceptance
public bool EmitRequireLicenseAcceptance { get; set; }
Property Value
Files
public ICollection<IPackageFile> Files { get; }
Property Value
FrameworkReferenceGroups
public Collection<FrameworkReferenceGroup> FrameworkReferenceGroups { get; }
Property Value
FrameworkReferences
public Collection<FrameworkAssemblyReference> FrameworkReferences { get; }
Property Value
HasSnapshotVersion
public bool HasSnapshotVersion { get; set; }
Property Value
Icon
public string Icon { get; set; }
Property Value
IconUrl
public Uri IconUrl { get; set; }
Property Value
- Uri
Id
public string Id { get; set; }
Property Value
Language
public string Language { get; set; }
Property Value
LicenseMetadata
public LicenseMetadata LicenseMetadata { get; set; }
Property Value
LicenseUrl
public Uri LicenseUrl { get; set; }
Property Value
- Uri
MailingListUrl
public Uri MailingListUrl { get; set; }
Property Value
- Uri
MinClientVersion
public Version MinClientVersion { get; set; }
Property Value
OutputName
public string OutputName { get; set; }
Property Value
Owners
public ISet<string> Owners { get; }
Property Value
PackageAssemblyReferences
public ICollection<PackageReferenceSet> PackageAssemblyReferences { get; set; }
Property Value
PackageSourceUrl
public Uri PackageSourceUrl { get; set; }
Property Value
- Uri
PackageTypes
public ICollection<PackageType> PackageTypes { get; set; }
Property Value
ProjectSourceUrl
public Uri ProjectSourceUrl { get; set; }
Property Value
- Uri
ProjectUrl
public Uri ProjectUrl { get; set; }
Property Value
- Uri
Properties
Exposes the additional properties extracted by the metadata extractor or received from the command line.
public Dictionary<string, string> Properties { get; }
Property Value
Provides
public ISet<string> Provides { get; set; }
Property Value
Readme
public string Readme { get; set; }
Property Value
ReleaseNotes
public string ReleaseNotes { get; set; }
Property Value
Replaces
public ISet<string> Replaces { get; set; }
Property Value
Repository
public RepositoryMetadata Repository { get; set; }
Property Value
RequireLicenseAcceptance
public bool RequireLicenseAcceptance { get; set; }
Property Value
Serviceable
public bool Serviceable { get; set; }
Property Value
SoftwareDisplayName
public string SoftwareDisplayName { get; set; }
Property Value
SoftwareDisplayVersion
public string SoftwareDisplayVersion { get; set; }
Property Value
Summary
public string Summary { get; set; }
Property Value
Tags
public ISet<string> Tags { get; }
Property Value
TargetFrameworks
public IList<NuGetFramework> TargetFrameworks { get; set; }
Property Value
- IList<NuGetFramework>
Title
public string Title { get; set; }
Property Value
Version
public NuGetVersion Version { get; set; }
Property Value
- NuGetVersion
WikiUrl
public Uri WikiUrl { get; set; }
Property Value
- Uri
Methods
AddFiles(string, string, string, string)
public void AddFiles(string basePath, string source, string destination, string exclude = null)
Parameters
Populate(ManifestMetadata)
public void Populate(ManifestMetadata manifestMetadata)
Parameters
manifestMetadata
ManifestMetadata
PopulateFiles(string, IEnumerable<ManifestFile>)
public void PopulateFiles(string basePath, IEnumerable<ManifestFile> files)
Parameters
basePath
stringfiles
IEnumerable<ManifestFile>
Save(Stream)
public void Save(Stream stream)
Parameters
stream
Stream
ValidateReferenceAssemblies(IEnumerable<IPackageFile>, IEnumerable<PackageReferenceSet>)
public static void ValidateReferenceAssemblies(IEnumerable<IPackageFile> files, IEnumerable<PackageReferenceSet> packageAssemblyReferences)
Parameters
files
IEnumerable<IPackageFile>packageAssemblyReferences
IEnumerable<PackageReferenceSet>