Workspace.ApplyCompilationOptionsChanged 方法

定义

此方法是在更改编译选项的过程中 TryApplyChanges(Solution) 调用的。

重写此方法以实现更改编译选项的功能。

protected:
 virtual void ApplyCompilationOptionsChanged(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::CompilationOptions ^ options);
protected virtual void ApplyCompilationOptionsChanged (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.CompilationOptions options);
abstract member ApplyCompilationOptionsChanged : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.CompilationOptions -> unit
override this.ApplyCompilationOptionsChanged : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.CompilationOptions -> unit
Protected Overridable Sub ApplyCompilationOptionsChanged (projectId As ProjectId, options As CompilationOptions)

参数

projectId
ProjectId

适用于