References

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Are you creating a setup project and installing it?

How the dlls are referenced in your project?
 
Yes, it could be done in a config file. You would have to configure the
<probing> element 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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top