Workspace.ApplyCompilationOptionsChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個方法會在 期間 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
- options
- CompilationOptions