Condividi tramite


MetadataReferenceResolver.ResolveMissingAssembly Metodo

Definizione

Risolve un riferimento all'assembly mancante.

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

Parametri

definition
MetadataReference

Definizione dei metadati (assembly o modulo) che dichiara riferimento all'assembly referenceIdentity nell'elenco delle dipendenze.

referenceIdentity
AssemblyIdentity

Identità del riferimento all'assembly che non è stato possibile risolvere in base ai riferimenti ai metadati specificati in modo esplicito nella compilazione.

Restituisce

Riferimento risolto o Null se l'identità non può essere risolta.

Si applica a