Solution.AddAnalyzerReference Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAnalyzerReference(AnalyzerReference) |
Create a new solution instance updated to include the specified analyzer reference. |
AddAnalyzerReference(ProjectId, AnalyzerReference) |
Create a new solution instance with the project specified updated to include the specified analyzer reference. |
AddAnalyzerReference(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 updated to include the specified analyzer reference.
public Microsoft.CodeAnalysis.Solution AddAnalyzerReference (Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.AddAnalyzerReference : Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerReference (analyzerReference As AnalyzerReference) As Solution
Parameters
- analyzerReference
- AnalyzerReference
Returns
Exceptions
analyzerReference
is null
.
Applies to
AddAnalyzerReference(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 include the specified analyzer reference.
public:
Microsoft::CodeAnalysis::Solution ^ AddAnalyzerReference(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
public Microsoft.CodeAnalysis.Solution AddAnalyzerReference (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.AddAnalyzerReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> Microsoft.CodeAnalysis.Solution
Public Function AddAnalyzerReference (projectId As ProjectId, analyzerReference As AnalyzerReference) As Solution
Parameters
- projectId
- ProjectId
- analyzerReference
- AnalyzerReference
Returns
Exceptions
analyzerReference
is null
.
The solution does not contain projectId
.