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. Assembly Path

Assembly Path

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
1 Posts 1 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.
  • W Offline
    W Offline
    Wender Oliveira
    wrote on last edited by
    #1

    Lets supose that I have 2 applications, one at C:\app1 and another at C:\app2. At application 2 I have 2 assemblies, app2-1.dll and app2-2.dll. App2-1.dll have a reference to app2-2.dll, so app2-1.dll needs app2-2.dll to work correctly. Ok, at my app1 I use the following code: System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); Type classType = assembly.GetType("app2-1.MyClass",true); At this time I've an error. When my assembly app2-1 tries to call some method from my app2-2 that is referenced it doesn't find my app2-2.dll. How to change my default assembly path when load it? something like this... System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"C:\app2\app2-1.dll"); assembly.DefaultPath = @"C:\app2\"; Some Idea? Tkx PS: This property DefaultPath doesn't exist... Wender Oliveira .NET Programmer

    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