当前位置: 首页>>代码示例>>C#>>正文


C# NuGet.PackageOperationEventArgs类代码示例

本文整理汇总了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);
		}
开发者ID:riverans,项目名称:monodevelop,代码行数:8,代码来源:OpenPackageReadmeMonitor.cs

示例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));
			}
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:11,代码来源:AddInSetup.cs

示例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);
        }
开发者ID:alexfalkowski,项目名称:NuGet.AdvancedPackagingTool,代码行数:14,代码来源:DefaultPackageInstaller.cs

示例4: PackageReferenceRemoving

		void PackageReferenceRemoving(IPackageManagementProject project, PackageOperationEventArgs e)
		{
			RunUninstallScript(project, e);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:4,代码来源:RunAllProjectPackageScriptsAction.cs

示例5: PackageInstalled

		void PackageInstalled(IPackageManagementProject project, PackageOperationEventArgs e)
		{
			RunInitScript(project, e);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:4,代码来源:RunAllProjectPackageScriptsAction.cs

示例6: PackageReferenceAdded

		void PackageReferenceAdded(object sender, PackageOperationEventArgs e)
		{
			RunInstallScript(e);
		}
开发者ID:raptux,项目名称:SharpDevelop,代码行数:4,代码来源:RunPackageScriptsAction.cs

示例7: PackageInstalled

		void PackageInstalled(object sender, PackageOperationEventArgs e)
		{
			RunInitScript(e);
		}
开发者ID:raptux,项目名称:SharpDevelop,代码行数:4,代码来源:RunPackageScriptsAction.cs

示例8: OnRemoveFiles

 protected virtual void OnRemoveFiles(PackageOperationEventArgs e)
 {
     RemoveFiles(e.Package);
 }
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:4,代码来源:PackageManager.cs

示例9: OnInstalling

 protected virtual void OnInstalling(PackageOperationEventArgs e)
 {
     if (PackageInstalling != null)
     {
         PackageInstalling(this, e);
     }
 }
开发者ID:sistoimenov,项目名称:NuGet2,代码行数:7,代码来源:PackageManager.cs

示例10: OnInstalled

 protected virtual void OnInstalled(PackageOperationEventArgs e)
 {
     if (_packageInstalled != null) {
         _packageInstalled(this, e);
     }
 }
开发者ID:jacksonh,项目名称:nuget,代码行数:6,代码来源:PackageManager.cs

示例11: PackageReferenceAdded

		void PackageReferenceAdded (object sender, PackageOperationEventArgs e)
		{
			packagesUpdated = true;
		}
开发者ID:brantwedel,项目名称:monodevelop,代码行数:4,代码来源:UpdatedPackagesMonitor.cs

示例12: FirePackageReferenceRemovingEvent

		void FirePackageReferenceRemovingEvent(IPackageManagementProject project, PackageOperationEventArgs eventArgs)
		{
			project.Raise(p => p.PackageReferenceRemoving += null, null, eventArgs);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:4,代码来源:RunAllProjectPackageScriptsActionTests.cs

示例13: FirePackageInstalledEvent

		void FirePackageInstalledEvent(IPackageManagementProject project, PackageOperationEventArgs eventArgs)
		{
			project.Raise(p => p.PackageInstalled += null, null, eventArgs);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:4,代码来源:RunAllProjectPackageScriptsActionTests.cs

示例14: _packageEvents_NuGetPackageUninstalled

 private void _packageEvents_NuGetPackageUninstalled(object sender, PackageOperationEventArgs e)
 {
     _events.OnAddInPackageRemoved(e);
 }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:4,代码来源:NuGetPackageManager.cs

示例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);
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:7,代码来源:NuGetPackageManager.cs


注:本文中的NuGet.PackageOperationEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。