當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。