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
Installing Windows 98 on a Dell Inspiron 1150 laptop freezes
Unable to synchronize with Active Sync using a Pocket PC
Turn off Access 2007 Current Version Check
loop through all the DataRows in an array of data rows to update rows in a table
Update Temp Recordset using VBA
Microsoft Outlook Delayed delivery option- Would like time stamp to show in sent items when email is actually sent and not when its activated
[http error 400 - request is badly formed] appears randomly in .net application
How to set a font to a CMenu ?
The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
Software from Windows 95 O/S