Share via


Solution.RemoveAnalyzerReference Method

Definition

Overloads

RemoveAnalyzerReference(AnalyzerReference)

Create a new solution instance with the project specified updated to no longer include the specified analyzer reference.

RemoveAnalyzerReference(ProjectId, AnalyzerReference)

Create a new solution instance with the project specified updated to no longer include the specified analyzer reference.

RemoveAnalyzerReference(AnalyzerReference)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

Create a new solution instance with the project specified updated to no longer include the specified analyzer reference.

public Microsoft.CodeAnalysis.Solution RemoveAnalyzerReference (Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.RemoveAnalyzerReference : Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveAnalyzerReference (analyzerReference As AnalyzerReference) As Solution

Parameters

analyzerReference
AnalyzerReference

Returns

Exceptions

analyzerReference is null.

The solution does not contain the specified reference.

Applies to

RemoveAnalyzerReference(ProjectId, AnalyzerReference)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

Create a new solution instance with the project specified updated to no longer include the specified analyzer reference.

public:
 Microsoft::CodeAnalysis::Solution ^ RemoveAnalyzerReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
public Microsoft.CodeAnalysis.Solution RemoveAnalyzerReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.RemoveAnalyzerReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Solution
Public Function RemoveAnalyzerReference (projectId As ProjectId, analyzerReference As AnalyzerReference) As Solution

Parameters

projectId
ProjectId
analyzerReference
AnalyzerReference

Returns

Exceptions

analyzerReference is null.

The project does not contain the specified reference.

Applies to