Project.WithProjectReferences(IEnumerable<ProjectReference>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建更新此项目的新实例,以将现有项目引用替换为指定的引用。
public:
Microsoft::CodeAnalysis::Project ^ WithProjectReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::ProjectReference ^> ^ projectReferences);
public Microsoft.CodeAnalysis.Project WithProjectReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ProjectReference> projectReferences);
member this.WithProjectReferences : seq<Microsoft.CodeAnalysis.ProjectReference> -> Microsoft.CodeAnalysis.Project
Public Function WithProjectReferences (projectReferences As IEnumerable(Of ProjectReference)) As Project
参数
- projectReferences
- IEnumerable<ProjectReference>