/// <summary> /// Creates a new solution instance with the project specified updated to have the output file path. /// </summary> public Solution WithProjectOutputFilePath(ProjectId projectId, string outputFilePath) { var newState = _state.WithProjectOutputFilePath(projectId, outputFilePath); if (newState == _state) { return(this); } return(new Solution(newState)); }