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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: How to setup all dlls in a separate folder?
    ... 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> I guess I'll have to do something in the .config file. ...
    (microsoft.public.dotnet.framework.setup)
  • How to setup all dlls in a separate folder?
    ... 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 ...
    (microsoft.public.dotnet.framework.setup)
  • Re: In need of 5 TS connections
    ... But if there are no unused workstations, the cost of installing ... If the ts is set up to host the user desktops, and the app is installed on ... >>> only thing I had to do was add the TS licensing ...
    (microsoft.public.windows.server.sbs)
  • Re: Problems with Beta 2
    ... I didn't intend to make you nervous about performance with SqlCE if you're ... > The golf app has only a max of 3 joins, its certainly got more data, but I ... > I can't get the RC build, so I'm stuck with Beta 2 for the moment. ... >>> installing the Windows mobile 5.0 SDK. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Run ADO/OLE DB from a CD-R
    ... > I need to get my VB6 app. ... > installing any files onto the host machine, or making any registry entries of ... > also have had Visual Studio installed, however on all other machines, the ADO ... Do you mean the bound-control 'ADODC' when you say 'ADO control'? ...
    (microsoft.public.data.ado)