Exemple #1
0
        /// <summary>
        /// Create a new solution instance with the project specified updated to include only the
        /// specified analyzer references.
        /// </summary>
        public Solution WithProjectAnalyzerReferences(ProjectId projectId, IEnumerable <AnalyzerReference> analyzerReferences)
        {
            var newState = _state.WithProjectAnalyzerReferences(projectId, analyzerReferences);

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

            return(new Solution(newState));
        }