示例#1
0
        /// <summary>
        /// Create a new solution instance with the project specified updated to contain
        /// the specified list of project references.
        /// </summary>
        public Solution WithProjectReferences(ProjectId projectId, IEnumerable <ProjectReference> projectReferences)
        {
            var newState = _state.WithProjectReferences(projectId, projectReferences);

            if (newState == _state)
            {
                return(this);
            }

            return(new Solution(newState));
        }