void OnRemoveReference(object sender, ProjectReferenceEventArgs e)
        {
            ITreeBuilder tb = Context.GetTreeBuilder(e.Project);

            if (tb != null)
            {
                if (tb.FindChild(e.ProjectReference, true))
                {
                    tb.Remove();
                }
            }
        }
Exemplo n.º 2
0
        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();
                }
            }
        }