void OnRemoveReference(object sender, ProjectReferenceEventArgs e) { ITreeBuilder tb = Context.GetTreeBuilder(e.Project); if (tb != null) { if (tb.FindChild(e.ProjectReference, true)) { tb.Remove(); } } }
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(); } } }