ISupportedChangesService.CanApplyCompilationOptionChange 方法

定义

在调用 TryApplyChanges(Solution) 期间调用以确定是否允许对 CompilationOptions 进行特定更改。

public bool CanApplyCompilationOptionChange (Microsoft.CodeAnalysis.CompilationOptions oldOptions, Microsoft.CodeAnalysis.CompilationOptions newOptions, Microsoft.CodeAnalysis.Project project);
abstract member CanApplyCompilationOptionChange : Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.Project -> bool
Public Function CanApplyCompilationOptionChange (oldOptions As CompilationOptions, newOptions As CompilationOptions, project As Project) As Boolean

参数

oldOptions
CompilationOptions

更改前项目的旧 CompilationOptions 版本。

project
Project

传递给 的 TryApplyChanges(Solution)中包含的Solution项目。

返回

适用于