Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how do i get the exe reference (dll) files using vb.net

how do i get the exe reference (dll) files using vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studioquestionworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kvelu d
    wrote on last edited by
    #1

    Hi, If i choose a windows application (exe) file then it will shows the reference file (dll) information like VS setup project Thanks KV

    D 1 Reply Last reply
    0
    • K kvelu d

      Hi, If i choose a windows application (exe) file then it will shows the reference file (dll) information like VS setup project Thanks KV

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        K Offline
        K Offline
        kvelu d
        wrote on last edited by
        #3

        i want that reference (dll) information at runtime and not for current application

        D 1 Reply Last reply
        0
        • K kvelu d

          i want that reference (dll) information at runtime and not for current application

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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))
          Next

          Now, 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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups