Solution.WithProjectCompilationOptions(ProjectId, CompilationOptions) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的项目创建新的解决方案实例,以具有指定的编译选项。
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
参数
- projectId
- ProjectId
- options
- CompilationOptions