public virtual string GetPackageDirectory(string packageId, SemanticVersion version) { string directory = packageId; if (_useSideBySidePaths) { directory = Path.Combine(directory, version.GetNormalizedVersionString()); } return(directory); }
public virtual string GetPackageFileName(string packageId, SemanticVersion version) { string fileNameBase = packageId; if (_useSideBySidePaths) { fileNameBase += "." + version.GetNormalizedVersionString(); } return(fileNameBase + Constants.PackageExtension); }
public string GetHashPath(string packageId, SemanticVersion version) { return(Path.Combine(GetInstallPath(packageId, version), $"{packageId}.{version.GetNormalizedVersionString()}{Constants.HashFileExtension}")); }