本文整理汇总了C#中IPackageManagementProject类的典型用法代码示例。如果您正苦于以下问题:C# IPackageManagementProject类的具体用法?C# IPackageManagementProject怎么用?C# IPackageManagementProject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPackageManagementProject类属于命名空间,在下文中一共展示了IPackageManagementProject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateUpdatePackageAction
UpdatePackageAction CreateUpdatePackageAction(IPackageManagementProject project)
{
UpdatePackageAction action = CreateDefaultUpdatePackageAction(project);
action.PackageId = packageReference.Id;
action.PackageVersion = packageReference.Version;
return action;
}
示例2: UpdatePackageAction
public UpdatePackageAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
: base(project, packageManagementEvents)
{
UpdateDependencies = true;
}
示例3: ProcessPackageAction
public ProcessPackageAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
{
this.Project = project;
this.packageManagementEvents = packageManagementEvents;
}
示例4: UninstallPackageAction
public UninstallPackageAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
: base(project, packageManagementEvents)
{
this.AllowPrereleaseVersions = true;
}
示例5: RegisterPackageInstalledEvent
void RegisterPackageInstalledEvent(IPackageManagementProject project)
{
EventHandler<PackageOperationEventArgs> installHandler =
(_, e) => PackageInstalled(project, e);
packageInstalledHandlers.Add(installHandler);
project.PackageInstalled += installHandler;
}
示例6: UpdatedPackages
public UpdatedPackages(
IPackageManagementProject project,
IPackageRepository aggregateRepository)
: this(project.GetPackages(),
aggregateRepository)
{
}
示例7: ReinstallProjectPackagesAction
public ReinstallProjectPackagesAction (
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
{
this.project = project;
this.packageManagementEvents = packageManagementEvents;
}
示例8: ProcessPackageOperationsAction
public ProcessPackageOperationsAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
: base(project, packageManagementEvents)
{
this.packageManagementEvents = packageManagementEvents;
}
示例9: InstallPackageAction
public InstallPackageAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
: base(project, packageManagementEvents)
{
DependencyVersion = DependencyVersion.Lowest;
}
示例10: Restore
public static void Restore (
IPackageManagementProject project,
Action afterRestore)
{
var runner = new RestoreBeforeUpdateAction ();
runner.RestoreProjectPackages (project.DotNetProject, afterRestore);
}
示例11: OpenPackageReadMeMonitor
public OpenPackageReadMeMonitor (
string packageId,
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
: this (packageId, project, new PackageManagementFileService (packageManagementEvents))
{
}
示例12: UpdatedPackages
public UpdatedPackages(
IPackageManagementProject project,
IPackageRepository aggregateRepository)
{
this.project = project;
this.sourceRepository = aggregateRepository;
}
示例13: RegisterPackageReferenceAddedEvent
void RegisterPackageReferenceAddedEvent(IPackageManagementProject project)
{
EventHandler<PackageOperationEventArgs> referenceAddedHandler =
(_, e) => PackageReferenceAdded(project, e);
packageReferenceAddedHandlers.Add(referenceAddedHandler);
project.PackageReferenceAdded += referenceAddedHandler;
}
示例14: CreateProgressMessage
ProgressMonitorStatusMessage CreateProgressMessage (List<UpdatePackageAction> updateActions, IPackageManagementProject project)
{
if (updateActions.Count == 1) {
return ProgressMonitorStatusMessageFactory.CreateUpdatingSinglePackageMessage (updateActions.First ().PackageId, project);
}
return ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInProjectMessage (updateActions.Count, project);
}
示例15: UpdatePackagesAction
public UpdatePackagesAction(
IPackageManagementProject project,
IPackageManagementEvents packageManagementEvents)
{
Project = project;
this.packageManagementEvents = packageManagementEvents;
UpdateDependencies = true;
}