Comparing application version with network file?

  • Thread starter Thread starter Michael Kellogg
  • Start date Start date
M

Michael Kellogg

At the beginning of program execution, I want to compare the executing
version of the program against the network copy to see if there's been an
update. In the "Properties" window of an EXE, I can see the version there,
but cannot figure out how to get the version out programmatically.

Anyone know how I can do this? Or am I better off just comparing versus
the creation date of a file or something?
 
As far as I know and can tell, there is no direct way to
determine the version alone of another assembly with
reflection, you can however get much the same result in a
slightly round about way.

After loading the assembly in question, simply get the
FullName of it which contains the version of the assembly
in question.

You can see an example of this at:
http://www.codeproject.com/csharp/IntroReflection.asp
 

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

Similar Threads


Back
Top