Example #1
0
        /// <summary>
        /// Create a new solution instance with the project specified updated to include the
        /// specified metadata reference.
        /// </summary>
        public Solution AddMetadataReference(ProjectId projectId, MetadataReference metadataReference)
        {
            var newState = _state.AddMetadataReference(projectId, metadataReference);

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

            return(new Solution(newState));
        }