Get Assembly ResourceList (Assembly Path)
Loads a .NET assembly from the specified file path and returns a formatted list of its embedded resource names.
This method attempts to load the assembly from the given path using Assembly.LoadFrom . If successful, it delegates to GetResourceList(Assembly) to extract and format the resource names.
VB
Public Function GetResourceList(assemblyPath As String) As String
Try
' Check if the file exists
If Not IO.File.Exists(assemblyPath) Then
Return String.Empty
End If
Return GetResourceList(Assembly.LoadFrom(assemblyPath))
Catch
Return "Unknown"
End Try
End Function