public static void RemoveImport(this MSBuildBasedProject project, string importedProjectFile) { lock (project.SyncRoot) { ProjectImportElement import = project.FindImport(importedProjectFile); if (import != null) { import.Parent.RemoveChild(import); } } }
public static bool ImportExists(this MSBuildBasedProject project, string importedProjectFile) { lock (project.SyncRoot) { return(project.FindImport(importedProjectFile) != null); } }