Where does Application.ProductVersion

  • Thread starter Thread starter Rachel Suddeth
  • Start date Start date
R

Rachel Suddeth

I think it will be the AssemblyVersionAttribute from the executable
assembly, but I can't seem to find that documented anywhere...

In fact, it does seem to be showing the same value as AssemblyVersion from
the executable assembly, so I'm pretty sure that it at least defaults to
that... but is that the only way it could get set?

-Rachel
 
Rachel Suddeth said:
I think it will be the AssemblyVersionAttribute from the executable
assembly, but I can't seem to find that documented anywhere...

Hi. Use:

string v =
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

-- Alan
 

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