Define assembly folder?

  • Thread starter Mats-Lennart Hansson
  • Start date
M

Mats-Lennart Hansson

Hi,
Is there a way to define where the assembly should search for its referenced
assemblies? I have my assemblies in different locations and I don't want to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart
 
G

Guest

erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the "MyApplication
Property Pages" dialog that is displayed, select common Properties/References
Path ... enter your paths
 
M

Mats-Lennart Hansson

I'm aware of reference paths. I can't use this though, since I during design
time don't know where the components will be located. The user can define
any location during installation so I can't set it when compiling.

Maybe I was a bit unclear, but I'm wondering how to set reference paths
programatically. Can this be done?

Thanks for your answer,

Mats-Lennart
 
G

Guest

I don't think I do understand the problem :blush:((

If you have a project that you want to compile, and that project needs to
reference an external library, you have to know where that assembly is in
order to compile your project (or even to use the intellisense of Visual
Studio).

When you build your project, by default the dependencies are also copied to
the output directory. When you are creating your installer for your assembly,
you should include the dependencies also ... you need to do this because you
are insisting on not using the GAC and therefore you need to package
everything you need in order to operate.
 

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

Top