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. C#
  4. create a loadable dll from vs 2005 environment (instead of by using csc)

create a loadable dll from vs 2005 environment (instead of by using csc)

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelptutorialquestion
2 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.
  • G Offline
    G Offline
    gobis
    wrote on last edited by
    #1

    Hello fellow programmers, I am one of the poor souls who tried to dynamically load a dll and discover its types, methods of types, etc. Now, an example in the vs2005 help environment (and also some online articles by c# programmers) shows that one can use the common line compiler csc with the option "/target:library" and call Assembly.LoadFrom("xxx.dll") etc. and there you go! It works. However, if I create a dll (not really a dll, as I have found out) through a class library or a control library project, it can't be loaded as an assembly (unless it is in the same solution as your calling application). I am wondering the difference between using the csc and the visual studio environment. Can I do the same trick from within the visual environment? What sort of C# project must I use to create the kind of library that csc creates? I will be grateful for any comment on the subject and pass it along to any other programmer who may tackle the same issue. Hurol

    S 1 Reply Last reply
    0
    • G gobis

      Hello fellow programmers, I am one of the poor souls who tried to dynamically load a dll and discover its types, methods of types, etc. Now, an example in the vs2005 help environment (and also some online articles by c# programmers) shows that one can use the common line compiler csc with the option "/target:library" and call Assembly.LoadFrom("xxx.dll") etc. and there you go! It works. However, if I create a dll (not really a dll, as I have found out) through a class library or a control library project, it can't be loaded as an assembly (unless it is in the same solution as your calling application). I am wondering the difference between using the csc and the visual studio environment. Can I do the same trick from within the visual environment? What sort of C# project must I use to create the kind of library that csc creates? I will be grateful for any comment on the subject and pass it along to any other programmer who may tackle the same issue. Hurol

      S Offline
      S Offline
      Saqib Mehmood
      wrote on last edited by
      #2

      You should use ClassLibrary type project to create dll in VS.

      Saqib

      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