Table of Contents

Class VersionFolderPathResolver

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

A V3 path resolver.

public class VersionFolderPathResolver
Inheritance
VersionFolderPathResolver
Inherited Members

Constructors

VersionFolderPathResolver(string)

Initializes a new VersionFolderPathResolver class.

public VersionFolderPathResolver(string rootPath)

Parameters

rootPath string

The packages directory root folder.

VersionFolderPathResolver(string, bool)

Initializes a new VersionFolderPathResolver class.

public VersionFolderPathResolver(string rootPath, bool isLowercase)

Parameters

rootPath string

The packages directory root folder.

isLowercase bool

true if package ID's and versions are made lowercase; otherwise false.

Properties

IsLowerCase

Gets a flag indicating whether or not package ID's and versions are made lowercase.

public bool IsLowerCase { get; }

Property Value

bool

RootPath

Gets the packages directory root folder.

public string RootPath { get; }

Property Value

string

Methods

GetHashFileName(string, NuGetVersion)

Gets the hash file name.

public string GetHashFileName(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The hash file name.

GetHashPath(string, NuGetVersion)

Gets the hash file path.

public string GetHashPath(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The hash file path.

GetInstallPath(string, NuGetVersion)

Gets the package install path.

public virtual string GetInstallPath(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The package install path.

GetManifestFileName(string, NuGetVersion)

Gets the manifest file name.

public virtual string GetManifestFileName(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The manifest file name.

GetManifestFilePath(string, NuGetVersion)

Gets the manifest file path.

public string GetManifestFilePath(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The manifest file path.

GetNupkgMetadataPath(string, NuGetVersion)

Gets the new hash file path which represents the original hash of the package.

public string GetNupkgMetadataPath(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The hash file path.

GetPackageDirectory(string, NuGetVersion)

Gets the package directory.

public virtual string GetPackageDirectory(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The package directory.

GetPackageDownloadMarkerFileName(string)

Gets the package download marker file name.

public string GetPackageDownloadMarkerFileName(string packageId)

Parameters

packageId string

The package ID.

Returns

string

The package download marker file name.

GetPackageFileName(string, NuGetVersion)

Gets the package file name.

public virtual string GetPackageFileName(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The package file name.

GetPackageFilePath(string, NuGetVersion)

Gets the package file path.

public string GetPackageFilePath(string packageId, NuGetVersion version)

Parameters

packageId string

The package ID.

version NuGetVersion

The package version.

Returns

string

The package file path.

GetVersionListDirectory(string)

Gets the version list directory.

public virtual string GetVersionListDirectory(string packageId)

Parameters

packageId string

The package ID.

Returns

string

The version list directory.

GetVersionListPath(string)

Gets the package version list path.

public string GetVersionListPath(string packageId)

Parameters

packageId string

The package ID.

Returns

string

The package version list path.