Microsoft
Software
Hardware
Network
Question : C# -- About Box -- display "Publish Version"
Below displays "AssemblyVersion"
which is found in
1. Application TAB
2. Assembly Information BUTTON
** attached 1.jpg
--------------------------
----------
----------
----
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssem
bly().GetN
ame().Vers
ion.ToStri
ng();
}
}
--------------------------
----------
----------
----
How can I get the "Publish Version"
which is found in below so it displays
when users hit my "About" button ?
1. Publish TAB
2. Publish Version
** attached 2.jpg
Answer : C# -- About Box -- display "Publish Version"
here is how to get the publish verison:
//
using System.Deployment.Applicat
ion;
//
if (ApplicationDeployment.IsN
etworkDepl
oyed) {
var appDeploy= ApplicationDeployment.Curr
entDeploym
ent;
var version = appDeploy.CurrentVersion;
}
Random Solutions
How automatically doing Compact and Repair Database?
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)
this exchange activesync server requires security features your phone does not support on Droid
SQL error with web site
How do I set the marquee text of the Logon Prompt screen saver for Default User?
WSUS sync problem
How to change data arrangement from Raw arrangement into column arrangement
asp.net Why does'nt these required fields work. Only the Phone field works?
Access 2007 Linked to Sharepoint with Drop-downs - type mismatch
SQL Server - How to find a string inside a variable?