共用方式為


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

適用於