correct assembly version

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.

How can I inform the user that he is not using the correct assembly?
Something like: "You have version 1.1 installed but you need version
1.2! Good Bye"

Is the question too stupid - because I didn´t find anything using
different search engines...

Greetings and a big thanks,
Tim.
 
You don't give precise details of your scenario, but dependent on what
exactly you are trying to do you could possibly subscribe to the
AppDomain.AssemblyLoad event and check the version of the assembly that gets
loaded.
 
Hello Tim,

You can load the assembly, using Assembly.LoadWithPartialName and after that,
using System.Version ver = localAssembly.GetName().Version determine which
version is used


TB> How can I inform the user that he is not using the correct assembly?
TB> Something like: "You have version 1.1 installed but you need version
TB> 1.2! Good Bye"
TB>
TB> Is the question too stupid - because I didn´t find anything using
TB> different search engines...
TB>
TB> Greetings and a big thanks,
TB> Tim.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 

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

Back
Top