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
Toshiba M115-S1061 with windows XP that has a hoarse, husky, scattered sound
Change Image File Orientation using VBA
MOSS and XLSX
cannot connect new client to SBS 2008 server with launcher.exe
see how tables are linked in database diagram
Access SQL DatePart or different method do display date range as month only
Sending multiple emails
Bios password forget
activex - Modify a textbox.value in a form on a webpage which also has the activex vb6
Two Terminal Services (win 2003 server) questions.