NuGet.SharedPackageRepository.IsReferenced C# (CSharp) Method

IsReferenced() public method

public IsReferenced ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
return bool
        public bool IsReferenced(string packageId, SemanticVersion version)
        {
            // See if this package exists in any other repository before we remove it
            return GetRepositories().Any(r => r.Exists(packageId, version));
        }