CommandLineArguments.ResolveMetadataReferences 方法

定义

解析使用给定文件解析程序和元数据提供程序存储的 MetadataReferences 元数据引用。

public:
 System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ ResolveMetadataReferences(Microsoft::CodeAnalysis::MetadataReferenceResolver ^ metadataResolver);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> ResolveMetadataReferences (Microsoft.CodeAnalysis.MetadataReferenceResolver metadataResolver);
member this.ResolveMetadataReferences : Microsoft.CodeAnalysis.MetadataReferenceResolver -> seq<Microsoft.CodeAnalysis.MetadataReference>
Public Function ResolveMetadataReferences (metadataResolver As MetadataReferenceResolver) As IEnumerable(Of MetadataReference)

参数

metadataResolver
MetadataReferenceResolver

MetadataReferenceResolver 用于程序集名称和相对路径解析。

返回

生成解析的元数据引用或 UnresolvedMetadataReference

例外

metadataResolver 为 null。

适用于