References

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?amV6MTIzNDU2?=

    #1

    References

    Hi experts

    I have a c# project which uses references to various dlls. All works ok on
    my pc, but if I run the project on another machine it does not work
    correctly. On further investigation, the other machine has the dlls in
    different path locations.

    How do I get my project to run wherever the dlls are stored? Could this be
    done in a config file?

    Many Thanks
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: References

    Yes, it could be done in a config file. You would have to configure the
    <probingeleme nt in the config file to specify directories to probe for the
    dlls that you are referencing.

    However, you could just as easily copy the assemblies into your local
    directory.

    If you don't want to copy them because you want multiple applications to
    use the assembly, and want to make sure that the assemblies are consistent
    across all applications, then you should place the assemblies in the Global
    Assembly Cache (GAC).


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "jez123456" <jez123456@disc ussions.microso ft.comwrote in message
    news:9171402B-2484-4644-9377-9CCC34BE24ED@mi crosoft.com...
    Hi experts
    >
    I have a c# project which uses references to various dlls. All works ok on
    my pc, but if I run the project on another machine it does not work
    correctly. On further investigation, the other machine has the dlls in
    different path locations.
    >
    How do I get my project to run wherever the dlls are stored? Could this be
    done in a config file?
    >
    Many Thanks

    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: References

      Hi,

      Are you creating a setup project and installing it?

      How the dlls are referenced in your project?

      "jez123456" <jez123456@disc ussions.microso ft.comwrote in message
      news:9171402B-2484-4644-9377-9CCC34BE24ED@mi crosoft.com...
      Hi experts
      >
      I have a c# project which uses references to various dlls. All works ok on
      my pc, but if I run the project on another machine it does not work
      correctly. On further investigation, the other machine has the dlls in
      different path locations.
      >
      How do I get my project to run wherever the dlls are stored? Could this be
      done in a config file?
      >
      Many Thanks

      Comment

      Working...