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
Excel Macro run from access command to export
2007 Excel Formulas
"You cancelled the previous operation error" MS ACCESS
Where can I find SYSTEM file?
How to Auto refresh WSS 3.0 page ?
SSIS Package Called from a SQL Job does not report error
Truncate text to n character of a string
Fololders copy any tool that can log whats moved and does not error for long paths.
How do I set up a System Centre Configuration Manager Console?
Why does Excel crash while running Excel macro?