how do i get the exe reference (dll) files using vb.net
-
Hi, If i choose a windows application (exe) file then it will shows the reference file (dll) information like VS setup project Thanks KV
What are you talking about?? Are you trying to find which .DLL's the default Windows Forms Application is referencing?? That's easy. Start a new project, then double-click the "My Project" folder in the Solution Explorer and click on the References tab. They're all right there.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
What are you talking about?? Are you trying to find which .DLL's the default Windows Forms Application is referencing?? That's easy. Start a new project, then double-click the "My Project" folder in the Solution Explorer and click on the References tab. They're all right there.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Ohhh...you didn't specifiy that in your question. References don't exist at runtime, so you can't get this list. But, there's is a close approximation. You can find the CURRENTLY LOADED assemblies (kind of like your references) for an AppDomain by getting the list from
AppDomain.CurrentDomain.GetAssemblies()
. Something like:Imports System.Reflection
.
.
.
Dim assemblies As Assembly() = AppDomain.CurrentDomain.GetAssemblies()
For Each a As Assembly In assemblies
Console.WriteLine(String.Format("Codebase: {0}", a.CodeBase))
Console.WriteLine(String.Format("FullName: {0}", a.FullName))
NextNow, as you run your application, this list may change as execution moves from one assembly in your app to another.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008