[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

How to setup all dlls in a separate folder?

Georges BESSIS

9/1/2006 12:04:00 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


2 Answers

Vadym Stetsyak

9/2/2006 10:15:00 AM

0

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/15h... )

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.bl...


Georges BESSIS

9/5/2006 6:37:00 PM

0

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...
> 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/15h... )
>
> 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.bl...
>