ISupportedChangesService.CanApplyCompilationOptionChange Method

Definition

Called during a call to TryApplyChanges(Solution) to determine if a specific change to CompilationOptions is allowed.

C#
public bool CanApplyCompilationOptionChange(Microsoft.CodeAnalysis.CompilationOptions oldOptions, Microsoft.CodeAnalysis.CompilationOptions newOptions, Microsoft.CodeAnalysis.Project project);

Parameters

oldOptions
CompilationOptions

The old CompilationOptions of the project from prior to the change.

newOptions
CompilationOptions

The new CompilationOptions of the project that was passed to TryApplyChanges(Solution).

project
Project

The project contained in the Solution passed to TryApplyChanges(Solution).

Returns

Applies to

Product Versions
Roslyn 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0