public void Dispose() { if (engine != null) { if (builder != null) { engine.UnloadProject(builder); } MSBuildProjectService.ReleaseProjectBuilder(engine); GC.SuppressFinalize(this); engine = null; builder = null; } }
public void Dispose () { if (!MSBuildProjectService.ShutDown && engine != null) { try { if (builder != null) engine.UnloadProject (builder); MSBuildProjectService.ReleaseProjectBuilder (engine); } catch { // Ignore } GC.SuppressFinalize (this); engine = null; builder = null; } }