本文整理匯總了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);
}