Solution.WithProjectCompilationOptions(ProjectId, CompilationOptions) Method

Definition

Create a new solution instance with the project specified updated to have the specified compilation options.

public:
 Microsoft::CodeAnalysis::Solution ^ WithProjectCompilationOptions(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::CompilationOptions ^ options);
public Microsoft.CodeAnalysis.Solution WithProjectCompilationOptions (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.CompilationOptions options);
member this.WithProjectCompilationOptions : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.CompilationOptions -> Microsoft.CodeAnalysis.Solution
Public Function WithProjectCompilationOptions (projectId As ProjectId, options As CompilationOptions) As Solution

Parameters

projectId
ProjectId

Returns

Applies to