Groups | Blog | Home
all groups > dotnet setup > september 2006 >

dotnet setup : How to setup all dlls in a separate folder?


Georges BESSIS
9/1/2006 2:03:46 PM
Hi,

When installing my app on a client system, I want to setup all dlls used by
my app in a separate folder, in order to keep my installation folder
cleaner.

I guess I'll have to do something in the .config file. How does that works?

Thanks in advance

GB

Vadym Stetsyak
9/2/2006 1:14:39 PM
Hello, Georges!
You wrote on Fri, 1 Sep 2006 14:03:46 +0200:

GB> When installing my app on a client system, I want to setup all dlls
GB> used by my app in a separate folder, in order to keep my installation
GB> folder cleaner.

GB> I guess I'll have to do something in the .config file. How does that
GB> works?

Yes, you have to tell the CLR where to look for your assemblies.
Keyword here is "probing".
( http://msdn2.microsoft.com/en-us/library/15hyw9x3.aspx )

If folder, where you put your asseblies is "bin", or "bin2" then config file
look like

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2;"/>
</assemblyBinding>
</runtime>
</configuration>

--
Regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com

Georges BESSIS
9/5/2006 8:36:40 PM
Many thanks Vadym. Your info saved me some time and did help!

Regards

GB


"Vadym Stetsyak" <vadym_s@ukr.net> a écrit dans le message de news:
OSDGcinzGHA.4368@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button