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

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!
 
B

Bruce Johnson

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
 
D

Dino Chiesa [Microsoft]

yep, your installer can copy the DLL in, and modify the settings in
app.config to specify the new version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top