예제 #1
0
        /// <summary>
        /// Create a new solution instance with the project specified updated to have
        /// the specified compilation options.
        /// </summary>
        public Solution WithProjectCompilationOptions(ProjectId projectId, CompilationOptions options)
        {
            var newState = _state.WithProjectCompilationOptions(projectId, options);

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

            return(new Solution(newState));
        }