Solution.WithProjectMetadataReferences Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Créez une instance de solution avec le projet spécifié pour inclure uniquement les références de métadonnées spécifiées.
public:
Microsoft::CodeAnalysis::Solution ^ WithProjectMetadataReferences(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ metadataReferences);
public Microsoft.CodeAnalysis.Solution WithProjectMetadataReferences (Microsoft.CodeAnalysis.ProjectId projectId, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> metadataReferences);
member this.WithProjectMetadataReferences : Microsoft.CodeAnalysis.ProjectId * seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.Solution
Public Function WithProjectMetadataReferences (projectId As ProjectId, metadataReferences As IEnumerable(Of MetadataReference)) As Solution
- projectId
- ProjectId
- metadataReferences
- IEnumerable<MetadataReference>
metadataReferences
contient null
.
metadataReferences
contient des éléments en double.
La solution ne contient projectId
pas .
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :