private void RemoveProjectItem(EnvDTE.ProjectItem parentItem, string itemName) { try { var item = parentItem.FindItem(itemName, false); if (item != null) { item.Delete(); } } catch { ReportError(String.Format("Unable to remove default transform '{0}'. You should delete this manually.", itemName)); }; }