* =?Utf-8?B?am9hbm5l?= <jo****@discuss ions.microsoft. com> scripsit:
how to tell application version after i installed it at client side?
i did make the version and product code while doing the packaging and deployment.
You can change the version in your "AssemblyInfo.v b" file:
\\\
<Assembly: AssemblyVersion ("1.0.*")>
///
My FAQ:
Basic information on versioning:
<URL:http://msdn.microsoft. com/library/en-us/dndotnet/html/managevers.asp>
<URL:http://msdn.microsoft. com/library/en-us/dnbda/html/tdlg_ch5.asp>
<URL:http://msdn.microsoft. com/library/en-us/cptutorials/html/versioning_comp onents.asp>
Parts of the version number:
Main version
"Product" version.
Sub version
Sub version, for example Service Pack.
Build
During development, auto-increment.
Revision
Hotfix or Quick Fix Engineering (QFE).
When using auto incrementation of numbers, the build number contains the
number of days since January, 2000; the revision contains the number of
seconds since midnight divided by 2.
The version number can be changed in the file "AssemblyInfo.v b". The
version number will updated automatically when re-opening the solution.
Getting the program version number:
\\\
MsgBox( _
System.Reflecti on.Assembly.Get ExecutingAssemb ly( _
).GetName().Ver sion.ToString() _
)
///
- or -
\\\
MsgBox( _
System.Windows. Forms.Applicati on.ProductVersi on.ToString() _
)
///
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>