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
SQL String error. 'Too few parameters. Expected 1.'
How do I convert a string with commas into a double?
cannot delete shared calendar items in OWA exchange 2007
How to open pdf in a new browser without save option
vb.net - if string
Excel: Conditional formatting checking for unequal cells in portions of 2 wksts
DBNETLIB][ConnectionOpen(C<wbr />onnect()).<wbr />]Specified<wbr /> SQL server not found. MADNESS
Need Assistance Selecting Web Authoring Tool
Convert Sprite Sheets to Animations
Dropdownlist change, does not change textboxes