ResolvePackage() публичный статический Метод

public static ResolvePackage ( IPackageRepository sourceRepository, IPackageRepository localRepository, IPackageConstraintProvider constraintProvider, string packageId, SemanticVersion version, bool allowPrereleaseVersions ) : IPackage
sourceRepository IPackageRepository
localRepository IPackageRepository
constraintProvider IPackageConstraintProvider
packageId string
version SemanticVersion
allowPrereleaseVersions bool
Результат IPackage
Пример #1
0
        public virtual void AddPackageReference(string packageId, Version version, bool ignoreDependencies)
        {
            IPackage package = PackageHelper.ResolvePackage(SourceRepository, LocalRepository, packageId, version);

            AddPackageReference(package, ignoreDependencies);
        }
Пример #2
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);
        }
Пример #3
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);
        }