示例#1
0
        /// <summary>
        /// Create a new solution instance with the project specified updated to include
        /// the specified project reference.
        /// </summary>
        public Solution AddProjectReference(ProjectId projectId, ProjectReference projectReference)
        {
            var newState = _state.AddProjectReference(projectId, projectReference);

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

            return(new Solution(newState));
        }