"VJ" <vi********@yahoo.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
At run time I want my Executable to look for certain shared
DLLs between our products at a speicfic path.
How do I get this accomplished?
Here are a couple of ways that I know of :
1) "Register" the shared DLL's in the Global Assembly Cache.
It won't actually matter where they're physically located; .Net will
be able to find them.
2) Use a DependentAssembly tag in your app.config, thereby
telling your application where to find *a* given DLL, as in
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity
name="[name]"
publicKeyToken="[token]"
culture="neutral"
/>
<codeBase
version="1.0.0.0"
href="[path to dll]"
/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
You'll need one of these DependentAssembly entries for /each/
DLL that /your/ application needs to load.
HTH,
Phill W.