Để lấy thông tin Resource của một file Assembly, chúng ta có thể làm như sau:
Imports System.Reflection Imports System.IO Module MinhHoangBlog Sub Main() ' dll Dim assemblyName As AssemblyName = New AssemblyName( "assembly_name" ) ' Get Resource Dim resources As String = String.Join( vbCrLf, Assembly.Load(assemblyName).GetManifestResourceNames() ) ' Output info Dim pathFile As String = "D:\Log\List_Resource_Names.txt" Using sw As StreamWriter = New StreamWriter( pathFile, True ) sw.WriteLine( "List Resource Names" ) sw.WriteLine( "======================" ) sw.WriteLine( resources ) End Using End Sub End Module