public virtual void InstallPackage(string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions) { IPackage package = PackageHelper.ResolvePackage(SourceRepository, LocalRepository, packageId, version, allowPrereleaseVersions); InstallPackage(package, ignoreDependencies, allowPrereleaseVersions); }
private IEnumerable <string> GetPackageFilePaths() { return(from p in _repositoryFileSystem.GetFiles(_packageName, "*.*", recursive: true) where !PackageHelper.IsManifest(p) && !PackageHelper.IsPackageFile(p) select p); }
public virtual void InstallPackage(string packageId, Version version, bool ignoreDependencies) { IPackage package = PackageHelper.ResolvePackage(SourceRepository, LocalRepository, packageId, version); InstallPackage(package, ignoreDependencies); }
public virtual void AddPackageReference(string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions) { IPackage package = PackageHelper.ResolvePackage(SourceRepository, LocalRepository, NullConstraintProvider.Instance, packageId, version, allowPrereleaseVersions); AddPackageReference(package, ignoreDependencies, allowPrereleaseVersions); }