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


C# Projects.ProjectReferenceEventArgs类代码示例

本文整理汇总了C#中MonoDevelop.Projects.ProjectReferenceEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ProjectReferenceEventArgs类的具体用法?C# ProjectReferenceEventArgs怎么用?C# ProjectReferenceEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ProjectReferenceEventArgs类属于MonoDevelop.Projects命名空间,在下文中一共展示了ProjectReferenceEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnReferenceAdded

        static void OnReferenceAdded(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            Project project = args.Project as DotNetProject;
            if (project != null && project.ExtendedProperties["QyotoDesignInfo"] == null)
                QyotoDesignInfo.EnableProject(project);
        }
开发者ID:codebutler,项目名称:qyotodevelop,代码行数:9,代码来源:ReferenceManager.cs

示例2: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			if (Project.Loading)
				return;

			if (RequiresMicrosoftBuild && e.ProjectReference.ReferenceType == ReferenceType.Project) {
				EnsureReferencedProjectsRequireMSBuild (true);
			}
		}
开发者ID:PlayScriptRedux,项目名称:monodevelop,代码行数:11,代码来源:DotNetProjectPackagingExtension.cs

示例3: OnReferenceRemoved

        static void OnReferenceRemoved(object o, ProjectReferenceEventArgs args)
        {
            if (!Util.IsQyotoReference(args.ProjectReference))
                return;

            DotNetProject dnp = args.Project as DotNetProject;

            if (dnp != null) {
                if (MonoDevelop.Core.Gui.MessageService.Confirm("Qyoto features will be disabled by removing the qt-dotnet reference.", new MonoDevelop.Core.Gui.AlertButton("Disable Qyoto")))
                    QyotoDesignInfo.DisableProject(dnp);
                else
                    dnp.References.Add(new ProjectReference(ReferenceType.Gac, args.ProjectReference.StoredReference));
            }
        }
开发者ID:codebutler,项目名称:qyotodevelop,代码行数:14,代码来源:ReferenceManager.cs

示例4: OnRemoveReference

		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			ITreeBuilder tb = Context.GetTreeBuilder (e.Project);
			if (tb != null) {
				if (tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
开发者ID:slwatmough,项目名称:monodevelop,代码行数:8,代码来源:ProjectReferenceFolderNodeBuilder.cs

示例5: OnReferenceRemoved

		void OnReferenceRemoved (object ob, ProjectReferenceEventArgs args)
		{
			if (disposed || !librariesUpdated)
				return;
			string pref = GetReferenceLibraryPath (args.ProjectReference);
			if (pref != null) {
				gproject.RemoveWidgetLibrary (pref);
				SaveProject (false);
			}
		}
开发者ID:rajeshpillai,项目名称:monodevelop,代码行数:10,代码来源:GuiBuilderProject.cs

示例6: OnReferenceChanged

		void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
		{
			if (args.Project.ParentSolution == folder.ParentSolution && NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
				UpdateTests ();
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:5,代码来源:SolutionFolderTestGroup.cs

示例7: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			findPipelineEntries(e.ProjectReference);
			base.OnReferenceAddedToProject(e);
		}
开发者ID:sergios1234,项目名称:monoxna,代码行数:5,代码来源:ContentProject.cs

示例8: OnReferenceRemoved

		static void OnReferenceRemoved (object o, ProjectReferenceEventArgs args)
		{
			if (updating || !IsGtkReference (args.ProjectReference))
				return;

			DotNetProject dnp = args.Project as DotNetProject;

			if (MessageService.Confirm (GettextCatalog.GetString ("The Gtk# User Interface designer will be disabled by removing the gtk-sharp reference."), new AlertButton (GettextCatalog.GetString ("Disable Designer"))))
				GtkDesignInfo.DisableProject (dnp);
			else
				dnp.References.Add (new ProjectReference (ReferenceType.Gac, args.ProjectReference.StoredReference));
		}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:12,代码来源:ReferenceManager.cs

示例9: OnRemoveReference

		void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
		{
			var p = e.Project as DotNetProject;
			if (p != null) {
				ITreeBuilder tb = Context.GetTreeBuilder (p.References);
				if (tb != null && tb.FindChild (e.ProjectReference, true))
					tb.Remove ();
			}
		}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:9,代码来源:ProjectReferenceFolderNodeBuilder.cs

示例10: OnReferenceAddedToProject

		protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
		{
			base.OnReferenceAddedToProject (e);

			DotNetProject project = GetDotNetProject (e.ProjectReference);
			if (project != null) {
				EnsureBuildPackagingNuGetPackageIsInstalled (project);
			}
		}
开发者ID:PlayScriptRedux,项目名称:monodevelop,代码行数:9,代码来源:PackagingProject.cs

示例11: OnAddReference

 void OnAddReference(object sender, ProjectReferenceEventArgs e)
 {
     var p = e.Project as AbstractDProject;
     if (p != null) {
         var tb = Context.GetTreeBuilder (p.References);
         if (tb != null)
             tb.AddChild (e.ProjectReference);
     }
 }
开发者ID:Geod24,项目名称:Mono-D,代码行数:9,代码来源:DProjectReferenceFolderNodeBuilder.cs

示例12: OnReferenceRemovedFromProject

		protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			//short-circuit if the project is being deserialised
			if (Project.Loading) {
				base.OnReferenceAddedToProject (e);
				return;
			}

			UpdateWebConfigRefs ();

			base.OnReferenceRemovedFromProject (e);
		}
开发者ID:kdubau,项目名称:monodevelop,代码行数:12,代码来源:AspNetAppProjectFlavor.cs

示例13: OnReferenceRemovedFromProject

			internal protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceRemovedFromProject (e);
			}
开发者ID:ArsenShnurkov,项目名称:monodevelop,代码行数:4,代码来源:DotNetProject.cs

示例14: OnReferenceAddedToProject

			internal protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
			{
				Project.OnReferenceAddedToProject (e);
			}
开发者ID:ArsenShnurkov,项目名称:monodevelop,代码行数:4,代码来源:DotNetProject.cs

示例15: OnReferenceRemovedFromProject

		internal protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
		{
			next.OnReferenceRemovedFromProject (e);
		}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:4,代码来源:DotNetProjectExtension.cs


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