|
|
|
@ -8,14 +8,14 @@ namespace ICSharpCode.PackageManagement
@@ -8,14 +8,14 @@ namespace ICSharpCode.PackageManagement
|
|
|
|
|
{ |
|
|
|
|
public static class IPackageRepositoryExtensions |
|
|
|
|
{ |
|
|
|
|
public static IDisposable StartInstallOperation(this IPackageRepository repository, string mainPackageId = null) |
|
|
|
|
public static IDisposable StartInstallOperation(this IPackageRepository repository, string mainPackageId = null, string mainPackageVersion = null) |
|
|
|
|
{ |
|
|
|
|
return repository.StartOperation(RepositoryOperationNames.Install, mainPackageId); |
|
|
|
|
return repository.StartOperation(RepositoryOperationNames.Install, mainPackageId, mainPackageVersion); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static IDisposable StartUpdateOperation(this IPackageRepository repository, string mainPackageId = null) |
|
|
|
|
public static IDisposable StartUpdateOperation(this IPackageRepository repository, string mainPackageId = null, string mainPackageVersion = null) |
|
|
|
|
{ |
|
|
|
|
return repository.StartOperation(RepositoryOperationNames.Update, mainPackageId); |
|
|
|
|
return repository.StartOperation(RepositoryOperationNames.Update, mainPackageId, mainPackageVersion); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|