示例#1
0
        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);
 }
示例#3
0
        public virtual void InstallPackage(string packageId, Version version, bool ignoreDependencies)
        {
            IPackage package = PackageHelper.ResolvePackage(SourceRepository, LocalRepository, packageId, version);

            InstallPackage(package, ignoreDependencies);
        }
示例#4
0
        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);
        }