共用方式為


AssemblyDependencyResolver.ResolveAssemblyToPath(AssemblyName) 方法

定義

根據元件的相依性,解析含指定組件名稱的組件路徑。

public:
 System::String ^ ResolveAssemblyToPath(System::Reflection::AssemblyName ^ assemblyName);
public string? ResolveAssemblyToPath (System.Reflection.AssemblyName assemblyName);
member this.ResolveAssemblyToPath : System.Reflection.AssemblyName -> string
Public Function ResolveAssemblyToPath (assemblyName As AssemblyName) As String

參數

assemblyName
AssemblyName

要解析的組件名稱。

傳回

具有元件 deps.json 檔案指定名稱的組件路徑;如果組件不在 deps.json 檔案中,或不在 deps.json 所指定的磁碟位置,則為 null

適用於