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

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

            return(new Solution(newState));
        }