Project.WithMetadataReferences(IEnumerable<MetadataReference>) 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.
Creates a new instance of this project updated to replace existing metadata reference with the specified ones.
public:
Microsoft::CodeAnalysis::Project ^ WithMetadataReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ metadataReferences);
public Microsoft.CodeAnalysis.Project WithMetadataReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> metadataReferences);
member this.WithMetadataReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.Project
Public Function WithMetadataReferences (metadataReferences As IEnumerable(Of MetadataReference)) As Project
Parameters
- metadataReferences
- IEnumerable<MetadataReference>
Returns
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.