' Check whether a specified file is a .NET assemblyFunction IsAssembly(ByVal filename As String) As Boolean Try Dim asm As [Assembly] = [Assembly].LoadFrom(filename) ' if no exception is thrown, this is an assembly Return True Catch e As Exception Return False End TryEnd Function