Class NuspecReader
Reads .nuspec files
public class NuspecReader : NuspecCoreReaderBase, INuspecCoreReader
- Inheritance
-
NuspecReader
- Implements
- Inherited Members
Constructors
NuspecReader(Stream)
Nuspec file reader
public NuspecReader(Stream stream)
Parameters
stream
StreamNuspec file stream.
NuspecReader(Stream, IFrameworkNameProvider, bool)
Nuspec file reader
public NuspecReader(Stream stream, IFrameworkNameProvider frameworkProvider, bool leaveStreamOpen)
Parameters
stream
StreamNuspec file stream.
frameworkProvider
IFrameworkNameProviderFramework mapping provider for NuGetFramework parsing.
leaveStreamOpen
bool
NuspecReader(string)
Nuspec file reader.
public NuspecReader(string path)
Parameters
path
string
NuspecReader(string, IFrameworkNameProvider)
Nuspec file reader.
public NuspecReader(string path, IFrameworkNameProvider frameworkProvider)
Parameters
path
stringframeworkProvider
IFrameworkNameProvider
NuspecReader(XDocument)
Nuspec file reader
public NuspecReader(XDocument xml)
Parameters
xml
XDocumentNuspec file xml data.
NuspecReader(XDocument, IFrameworkNameProvider)
Nuspec file reader
public NuspecReader(XDocument xml, IFrameworkNameProvider frameworkProvider)
Parameters
xml
XDocumentNuspec file xml data.
frameworkProvider
IFrameworkNameProviderFramework mapping provider for NuGetFramework parsing.
Methods
GetAuthors()
Package authors.
public string GetAuthors()
Returns
GetBugTrackerUrl()
public string GetBugTrackerUrl()
Returns
GetConflicts()
public string GetConflicts()
Returns
GetContentFiles()
Build action groups
public IEnumerable<ContentFilesEntry> GetContentFiles()
Returns
GetCopyright()
Copyright information.
public string GetCopyright()
Returns
GetDependencyGroups()
Read package dependencies for all frameworks
public IEnumerable<PackageDependencyGroup> GetDependencyGroups()
Returns
GetDependencyGroups(bool)
Read package dependencies for all frameworks
public IEnumerable<PackageDependencyGroup> GetDependencyGroups(bool useStrictVersionCheck)
Parameters
useStrictVersionCheck
bool
Returns
GetDescription()
Package description.
public string GetDescription()
Returns
GetDocsUrl()
public string GetDocsUrl()
Returns
GetFrameworkAssemblyGroups()
Framework assembly groups
public IEnumerable<FrameworkSpecificGroup> GetFrameworkAssemblyGroups()
Returns
GetFrameworkRefGroups()
Read package dependencies for all frameworks
public IEnumerable<FrameworkReferenceGroup> GetFrameworkRefGroups()
Returns
GetFrameworkReferenceGroups()
Framework assembly groups
[Obsolete("GetFrameworkReferenceGroups() is deprecated. Please use GetFrameworkAssemblyGroups() instead.")]
public IEnumerable<FrameworkSpecificGroup> GetFrameworkReferenceGroups()
Returns
GetIcon()
Gets the icon metadata from the .nuspec
public string GetIcon()
Returns
- string
A string containing the icon path or null if no icon entry is found
GetIconUrl()
Package icon url.
public string GetIconUrl()
Returns
GetLanguage()
Package language
public string GetLanguage()
Returns
GetLicenseMetadata()
Parses the license object if specified. The metadata can be of 2 types, Expression and File. The method will not fail if it sees values that invalid (empty/unparseable license etc), but it will rather add validation errors/warnings.
public LicenseMetadata GetLicenseMetadata()
Returns
- LicenseMetadata
The licensemetadata if specified
Remarks
This method never throws. Bad data is still parsed.
GetLicenseUrl()
Package License Url
public string GetLicenseUrl()
Returns
GetMailingListUrl()
public string GetMailingListUrl()
Returns
GetOwners()
Package owners.
public string GetOwners()
Returns
GetPackageSourceUrl()
public string GetPackageSourceUrl()
Returns
GetProjectSourceUrl()
public string GetProjectSourceUrl()
Returns
GetProjectUrl()
Package project url.
public string GetProjectUrl()
Returns
GetProvides()
public string GetProvides()
Returns
GetReadme()
Gets the readme metadata from the .nuspec
public string GetReadme()
Returns
- string
A string containing the readme path or null if no readme entry is found
GetReferenceGroups()
Reference item groups
public IEnumerable<FrameworkSpecificGroup> GetReferenceGroups()
Returns
GetReleaseNotes()
Package release notes.
public string GetReleaseNotes()
Returns
GetReplaces()
public string GetReplaces()
Returns
GetRepositoryMetadata()
Source control repository information.
public RepositoryMetadata GetRepositoryMetadata()
Returns
GetRequireLicenseAcceptance()
Require license acceptance when installing the package.
public bool GetRequireLicenseAcceptance()
Returns
GetSoftwareDisplayName()
public string GetSoftwareDisplayName()
Returns
GetSoftwareDisplayVersion()
public string GetSoftwareDisplayVersion()
Returns
GetSummary()
Package summary.
public string GetSummary()
Returns
GetTags()
Package tags.
public string GetTags()
Returns
GetTitle()
Package title.
public string GetTitle()
Returns
GetWikiUrl()
public string GetWikiUrl()