MetadataReferenceResolver.ResolveMissingAssembly 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.
Resolves a missing assembly reference.
public:
virtual Microsoft::CodeAnalysis::PortableExecutableReference ^ ResolveMissingAssembly(Microsoft::CodeAnalysis::MetadataReference ^ definition, Microsoft::CodeAnalysis::AssemblyIdentity ^ referenceIdentity);
public virtual Microsoft.CodeAnalysis.PortableExecutableReference ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity);
public virtual Microsoft.CodeAnalysis.PortableExecutableReference? ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity);
abstract member ResolveMissingAssembly : Microsoft.CodeAnalysis.MetadataReference * Microsoft.CodeAnalysis.AssemblyIdentity -> Microsoft.CodeAnalysis.PortableExecutableReference
override this.ResolveMissingAssembly : Microsoft.CodeAnalysis.MetadataReference * Microsoft.CodeAnalysis.AssemblyIdentity -> Microsoft.CodeAnalysis.PortableExecutableReference
Public Overridable Function ResolveMissingAssembly (definition As MetadataReference, referenceIdentity As AssemblyIdentity) As PortableExecutableReference
Parameters
- definition
- MetadataReference
The metadata definition (assembly or module) that declares assembly reference referenceIdentity
in its list of dependencies.
- referenceIdentity
- AssemblyIdentity
Identity of the assembly reference that couldn't be resolved against metadata references explicitly specified to in the compilation.
Returns
Resolved reference or null if the identity can't be resolved.
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.