public Exists ( string packageId, SemanticVersion version ) : bool | ||
packageId | string | |
version | SemanticVersion | |
Résultat | bool |
public bool Exists(string packageId, SemanticVersion version)
{
string packageName = GetPackageFileName(packageId, version);
string packageFile = packageName + Constants.PackageExtension;
return FileSystem.FileExists(packageFile) && FileSystem.DirectoryExists(packageName);
}