private void RemoveItem(ProjectItemGroupElement parent, Dictionary <string, ProjectItemElement> items, string path) { ProjectItemElement item; if (!items.TryGetValue(path, out item)) { return; } parent.RemoveChild(item); items.Remove(path); }