/// <summary> /// Create a new solution instance with the project specified updated to no longer /// include the specified project reference. /// </summary> public Solution RemoveProjectReference(ProjectId projectId, ProjectReference projectReference) { var newState = _state.RemoveProjectReference(projectId, projectReference); if (newState == _state) { return(this); } return(new Solution(newState)); }