Table of Contents

Class ManifestMetadata

Namespace
NuGet.Packaging
Assembly
Chocolatey.NuGet.Packaging.dll

Manifest (user created .nuspec) file metadata model

public class ManifestMetadata : IPackageMetadata
Inheritance
ManifestMetadata
Implements
Inherited Members

Constructors

ManifestMetadata()

public ManifestMetadata()

ManifestMetadata(IPackageMetadata)

Constructs a ManifestMetadata instance from an IPackageMetadata instance

public ManifestMetadata(IPackageMetadata copy)

Parameters

copy IPackageMetadata

Properties

Authors

public IEnumerable<string> Authors { get; set; }

Property Value

IEnumerable<string>

BugTrackerUrl

public Uri BugTrackerUrl { get; }

Property Value

Uri

Conflicts

public IEnumerable<string> Conflicts { get; set; }

Property Value

IEnumerable<string>

ContentFiles

Returns sets of Content Files specified in the manifest.

public IEnumerable<ManifestContentFiles> ContentFiles { get; set; }

Property Value

IEnumerable<ManifestContentFiles>
public string Copyright { get; set; }

Property Value

string

DependencyGroups

Specifies sets other packages that the package depends on.

public IEnumerable<PackageDependencyGroup> DependencyGroups { get; set; }

Property Value

IEnumerable<PackageDependencyGroup>

Description

public string Description { get; set; }

Property Value

string

DevelopmentDependency

public bool DevelopmentDependency { get; set; }

Property Value

bool

DocsUrl

public Uri DocsUrl { get; }

Property Value

Uri

EmitRequireLicenseAcceptance

public bool EmitRequireLicenseAcceptance { get; set; }

Property Value

bool

FrameworkReferenceGroups

public IEnumerable<FrameworkReferenceGroup> FrameworkReferenceGroups { get; set; }

Property Value

IEnumerable<FrameworkReferenceGroup>

FrameworkReferences

Specifies assemblies from GAC that the package depends on.

public IEnumerable<FrameworkAssemblyReference> FrameworkReferences { get; set; }

Property Value

IEnumerable<FrameworkAssemblyReference>

Icon

public string Icon { get; set; }

Property Value

string

IconUrl

public Uri IconUrl { get; }

Property Value

Uri

Id

public string Id { get; set; }

Property Value

string

Language

public string Language { get; set; }

Property Value

string

LicenseMetadata

public LicenseMetadata LicenseMetadata { get; set; }

Property Value

LicenseMetadata

LicenseUrl

public Uri LicenseUrl { get; }

Property Value

Uri

MailingListUrl

public Uri MailingListUrl { get; }

Property Value

Uri

MinClientVersion

public Version MinClientVersion { get; }

Property Value

Version

MinClientVersionString

public string MinClientVersionString { get; set; }

Property Value

string

Owners

public IEnumerable<string> Owners { get; set; }

Property Value

IEnumerable<string>

PackageAssemblyReferences

Returns sets of References specified in the manifest.

public IEnumerable<PackageReferenceSet> PackageAssemblyReferences { get; set; }

Property Value

IEnumerable<PackageReferenceSet>

PackageSourceUrl

public Uri PackageSourceUrl { get; }

Property Value

Uri

PackageTypes

public IEnumerable<PackageType> PackageTypes { get; set; }

Property Value

IEnumerable<PackageType>

ProjectSourceUrl

public Uri ProjectSourceUrl { get; }

Property Value

Uri

ProjectUrl

public Uri ProjectUrl { get; }

Property Value

Uri

Provides

public IEnumerable<string> Provides { get; set; }

Property Value

IEnumerable<string>

Readme

public string Readme { get; set; }

Property Value

string

ReleaseNotes

public string ReleaseNotes { get; set; }

Property Value

string

Replaces

public IEnumerable<string> Replaces { get; set; }

Property Value

IEnumerable<string>

Repository

public RepositoryMetadata Repository { get; set; }

Property Value

RepositoryMetadata

RequireLicenseAcceptance

public bool RequireLicenseAcceptance { get; set; }

Property Value

bool

Serviceable

public bool Serviceable { get; set; }

Property Value

bool

SoftwareDisplayName

public string SoftwareDisplayName { get; set; }

Property Value

string

SoftwareDisplayVersion

public string SoftwareDisplayVersion { get; set; }

Property Value

string

Summary

public string Summary { get; set; }

Property Value

string

Tags

public string Tags { get; set; }

Property Value

string

Title

public string Title { get; set; }

Property Value

string

Version

public NuGetVersion Version { get; set; }

Property Value

NuGetVersion

WikiUrl

public Uri WikiUrl { get; }

Property Value

Uri

Methods

SetBugTrackerUrl(string)

public void SetBugTrackerUrl(string bugTrackerUrl)

Parameters

bugTrackerUrl string

SetDocsUrl(string)

public void SetDocsUrl(string docsUrl)

Parameters

docsUrl string

SetIconUrl(string)

public void SetIconUrl(string iconUrl)

Parameters

iconUrl string

SetLicenseUrl(string)

public void SetLicenseUrl(string licenseUrl)

Parameters

licenseUrl string

SetMailingListUrl(string)

public void SetMailingListUrl(string mailingListUrl)

Parameters

mailingListUrl string

SetPackageSourceUrl(string)

public void SetPackageSourceUrl(string packageSourceUrl)

Parameters

packageSourceUrl string

SetProjectSourceUrl(string)

public void SetProjectSourceUrl(string projectSourceUrl)

Parameters

projectSourceUrl string

SetProjectUrl(string)

public void SetProjectUrl(string projectUrl)

Parameters

projectUrl string

SetWikiUrl(string)

public void SetWikiUrl(string wikiUrl)

Parameters

wikiUrl string

Validate()

Checks that the metadata in the nuspec is enough to create a package

public IEnumerable<string> Validate()

Returns

IEnumerable<string>

A iterable collection with the validation error messages

Remarks

Error codes are not associated with the validation error messages returned