public void RemoveReference(string name) { ProjectItem assemblyReference = GetReference(name); if (assemblyReference != null) { Project.RemoveItem(assemblyReference); } }