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

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

            return(new Solution(newState));
        }