Assembly.Load() with strong name but no version!

  • Thread starter Thread starter edge
  • Start date Start date
E

edge

Is there any way to Assembly.Load() dynamically the DLLs of my project, with
their strong names, but without the need to specify a version? I just want
the public/private key to exist as a measure of safety for their
authenticity. I don't want to narrow down the valid DLLs to only those that
share the same version.

Because if later i decide to upgrade a DLL, I'll have to recompile and send
to the customer the WHOLE project, and not just the newer DLL, because its
version will differ from the others...

Thanks!
 
You might want to take a look at the bindingRedirect tag in the
dependentAssembly section of app.config. It allows you to change the
version of a particular assembly that the CLR looks for when executing
an application. I suspect this is exactly what you're looking for.

Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/bruce
 
yep, your installer can copy the DLL in, and modify the settings in
app.config to specify the new version.
 
Back
Top