Class VersionFolderPathResolver
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
stringThe packages directory root folder.
VersionFolderPathResolver(string, bool)
Initializes a new VersionFolderPathResolver class.
public VersionFolderPathResolver(string rootPath, bool isLowercase)
Parameters
rootPath
stringThe packages directory root folder.
isLowercase
booltrue
if package ID's and versions are made lowercase; otherwisefalse
.
Properties
IsLowerCase
Gets a flag indicating whether or not package ID's and versions are made lowercase.
public bool IsLowerCase { get; }
Property Value
RootPath
Gets the packages directory root folder.
public string RootPath { get; }
Property Value
Methods
GetHashFileName(string, NuGetVersion)
Gets the hash file name.
public string GetHashFileName(string packageId, NuGetVersion version)
Parameters
packageId
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe package version.
Returns
- string
The package directory.
GetPackageDownloadMarkerFileName(string)
Gets the package download marker file name.
public string GetPackageDownloadMarkerFileName(string packageId)
Parameters
packageId
stringThe 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
stringThe package ID.
version
NuGetVersionThe 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
stringThe package ID.
version
NuGetVersionThe package version.
Returns
- string
The package file path.
GetVersionListDirectory(string)
Gets the version list directory.
public virtual string GetVersionListDirectory(string packageId)
Parameters
packageId
stringThe package ID.
Returns
- string
The version list directory.
GetVersionListPath(string)
Gets the package version list path.
public string GetVersionListPath(string packageId)
Parameters
packageId
stringThe package ID.
Returns
- string
The package version list path.