Assembly Reference Version Question

  • Thread starter Thread starter Microsoft News
  • Start date Start date
M

Microsoft News

I built several .NET dlls with assorted classes in them. My app references
these DLLs in its reference section so I can use the classes. Is there
something I can put into the AssemblyInfo or somewhere to tell the app that
it should reference the latest version of the dll?

It alwasy uses the one that it there, but if the version is different, I get
a compiler warning about the version conflict. I was hoping to get rid of
this. I saw that if you put it into the GAC, you can provide a publisher
file that tells the system to upgrade the version. I don't want to put my
stuff in hte GAC.

Thanks.
 
You can accomplish the same thing in the app.config file with
bindingRedirect.

It appears that you have to set newVersion to a specific version, instead of
something like 1.0.*.* and let it update automagically. Just distribute a
new app.config with the updated dlls.

HTH;
Eric Cadwell
http://www.origincontrols.com
 
Back
Top