From 7eb98d2853b7d5b783be7aab0fe8bf452689a2d2 Mon Sep 17 00:00:00 2001 From: Glenn Block Date: Thu, 16 Feb 2017 00:38:33 -0800 Subject: [PATCH 1/2] Make protected InstallPackage method public. --- src/Core/PackageManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/PackageManager.cs b/src/Core/PackageManager.cs index 6252d99c7..1a335f60e 100644 --- a/src/Core/PackageManager.cs +++ b/src/Core/PackageManager.cs @@ -133,7 +133,7 @@ public void InstallPackage(IPackage package, bool ignoreDependencies, bool allow InstallPackage(package, targetFramework: null, ignoreDependencies: ignoreDependencies, allowPrereleaseVersions: allowPrereleaseVersions, ignoreWalkInfo: ignoreWalkInfo); } - protected void InstallPackage( + public void InstallPackage( IPackage package, FrameworkName targetFramework, bool ignoreDependencies, @@ -485,4 +485,4 @@ public void UpdatePackage(IPackage newPackage, bool updateDependencies, bool all public bool CheckDowngrade { get; set; } } -} \ No newline at end of file +} From 98a46f84f43570b059d4b73a66c3b145bbd54848 Mon Sep 17 00:00:00 2001 From: Glenn Block Date: Thu, 16 Feb 2017 00:41:21 -0800 Subject: [PATCH 2/2] Adds new overload for InstallPackage --- src/Core/IPackageManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/IPackageManager.cs b/src/Core/IPackageManager.cs index 9abb14025..639635170 100644 --- a/src/Core/IPackageManager.cs +++ b/src/Core/IPackageManager.cs @@ -34,7 +34,7 @@ public interface IPackageManager event EventHandler PackageInstalling; event EventHandler PackageUninstalled; event EventHandler PackageUninstalling; - + void InstallPackage(IPackage package,FrameworkName targetFramework,bool ignoreDependencies,bool allowPrereleaseVersions,bool ignoreWalkInfo = false) void InstallPackage(IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions); void InstallPackage(IPackage package, bool ignoreDependencies, bool allowPrereleaseVersions, bool ignoreWalkInfo); void InstallPackage(string packageId, SemanticVersion version, bool ignoreDependencies, bool allowPrereleaseVersions);