共用方式為


Project.WithAnalyzerReferences(IEnumerable<AnalyzerReference>) 方法

定義

建立更新此專案的新實例,以將現有的分析器參考取代為指定的實例。

public:
 Microsoft::CodeAnalysis::Project ^ WithAnalyzerReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^> ^ analyzerReferencs);
public Microsoft.CodeAnalysis.Project WithAnalyzerReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> analyzerReferencs);
member this.WithAnalyzerReferences : seq<Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> -> Microsoft.CodeAnalysis.Project
Public Function WithAnalyzerReferences (analyzerReferencs As IEnumerable(Of AnalyzerReference)) As Project

參數

analyzerReferencs
IEnumerable<AnalyzerReference>

傳回

適用於