本文整理汇总了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);
}
示例2: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
base.OnReferenceAddedToProject (e);
if (Project.Loading)
return;
if (RequiresMicrosoftBuild && e.ProjectReference.ReferenceType == ReferenceType.Project) {
EnsureReferencedProjectsRequireMSBuild (true);
}
}
示例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));
}
}
示例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 ();
}
}
示例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);
}
}
示例6: OnReferenceChanged
void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
{
if (args.Project.ParentSolution == folder.ParentSolution && NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
UpdateTests ();
}
示例7: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
findPipelineEntries(e.ProjectReference);
base.OnReferenceAddedToProject(e);
}
示例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));
}
示例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 ();
}
}
示例10: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
base.OnReferenceAddedToProject (e);
DotNetProject project = GetDotNetProject (e.ProjectReference);
if (project != null) {
EnsureBuildPackagingNuGetPackageIsInstalled (project);
}
}
示例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);
}
}
示例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);
}
示例13: OnReferenceRemovedFromProject
internal protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
{
Project.OnReferenceRemovedFromProject (e);
}
示例14: OnReferenceAddedToProject
internal protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
Project.OnReferenceAddedToProject (e);
}
示例15: OnReferenceRemovedFromProject
internal protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
{
next.OnReferenceRemovedFromProject (e);
}