build info

  • Thread starter Thread starter guy
  • Start date Start date
G

guy

Is there a built in variable in C# that will give me the build number or
version number of a project such that I can write that out to reports etc?

Thanks
 
Hi,

Yes, there is!

Control.ProductVersion (a string version x.y.z.build_nr)
or
Assembly.GetName().Version (.Build)

HTH
Marcin
 
Application.ProductVersion should give you a project
version which is of the following format

Major.Minor.Build.Release

Hope this helps
 
Just what I was looking for - thanks.

tribal said:
Application.ProductVersion should give you a project
version which is of the following format

Major.Minor.Build.Release

Hope this helps
 
Back
Top