本文整理汇总了C#中NuGet.PackageOperationEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# PackageOperationEventArgs类的具体用法?C# PackageOperationEventArgs怎么用?C# PackageOperationEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PackageOperationEventArgs类属于NuGet命名空间,在下文中一共展示了PackageOperationEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PackageInstalled
void PackageInstalled (object sender, PackageOperationEventArgs e)
{
if (e.Package.Id != PackageId) {
return;
}
ReadMeFile = FindReadMeFileInPackage (e.InstallPath, e.Package);
}
示例2: events_AddInPackageDownloaded
private void events_AddInPackageDownloaded(object sender, PackageOperationEventArgs e)
{
try
{
InstallAddIn(e.Package, e.InstallPath);
}
catch (Exception ex)
{
_events.OnAddInOperationError(new AddInOperationErrorEventArgs(ex));
}
}
示例3: OnPackageManagerPackageUninstalling
private void OnPackageManagerPackageUninstalling(object sender, PackageOperationEventArgs e)
{
var package = e.Package;
var unistallPackageFile = package.GetUninstallPackageFile();
this.shellPackageFile.Execute(unistallPackageFile, package, this.logger);
if (this.installCalled)
{
return;
}
var teardownPackageFile = package.GetTeardownPackageFile();
this.shellPackageFile.Execute(teardownPackageFile, package, this.logger);
}
示例4: PackageReferenceRemoving
void PackageReferenceRemoving(IPackageManagementProject project, PackageOperationEventArgs e)
{
RunUninstallScript(project, e);
}
示例5: PackageInstalled
void PackageInstalled(IPackageManagementProject project, PackageOperationEventArgs e)
{
RunInitScript(project, e);
}
示例6: PackageReferenceAdded
void PackageReferenceAdded(object sender, PackageOperationEventArgs e)
{
RunInstallScript(e);
}
示例7: PackageInstalled
void PackageInstalled(object sender, PackageOperationEventArgs e)
{
RunInitScript(e);
}
示例8: OnRemoveFiles
protected virtual void OnRemoveFiles(PackageOperationEventArgs e)
{
RemoveFiles(e.Package);
}
示例9: OnInstalling
protected virtual void OnInstalling(PackageOperationEventArgs e)
{
if (PackageInstalling != null)
{
PackageInstalling(this, e);
}
}
示例10: OnInstalled
protected virtual void OnInstalled(PackageOperationEventArgs e)
{
if (_packageInstalled != null) {
_packageInstalled(this, e);
}
}
示例11: PackageReferenceAdded
void PackageReferenceAdded (object sender, PackageOperationEventArgs e)
{
packagesUpdated = true;
}
示例12: FirePackageReferenceRemovingEvent
void FirePackageReferenceRemovingEvent(IPackageManagementProject project, PackageOperationEventArgs eventArgs)
{
project.Raise(p => p.PackageReferenceRemoving += null, null, eventArgs);
}
示例13: FirePackageInstalledEvent
void FirePackageInstalledEvent(IPackageManagementProject project, PackageOperationEventArgs eventArgs)
{
project.Raise(p => p.PackageInstalled += null, null, eventArgs);
}
示例14: _packageEvents_NuGetPackageUninstalled
private void _packageEvents_NuGetPackageUninstalled(object sender, PackageOperationEventArgs e)
{
_events.OnAddInPackageRemoved(e);
}
示例15: _packageEvents_NuGetPackageInstalled
private void _packageEvents_NuGetPackageInstalled(object sender, PackageOperationEventArgs e)
{
// NuGet package has been downloaded and extracted, now install the AddIn from it
// TODO Error management?
_events.OnAddInPackageDownloaded(e);
}