I want to show the publish date in the About dialog.
views:
151answers:
2
+1
A:
Unfortunately, no. ApplicationDeployment class exposes only the CurrentVersion property, not the publish time.
You could use the revision field to store the date of the build to show in the About dialog.
Franci Penov
2008-10-20 11:20:56
+1
A:
As far as I know there is no direct way in Click-Once to do that.
Here is a workaround: You'd have to load the file in question (DLL or EXE) into a FileInfo object and get the modification date off it.
FileInfo oMyFile = new
FileInfo(Assembly.GetExecutingAssembly().Location);
DateTime oBuildDate = oMyFile.LastWriteTime // or LastWriteTimeUtc - don't use "CreationTime"
Note: Technically, it's not the publishing date, but the date of the assembly on the disk of the client. You have to check if Click-Once doesn't change that date
splattne
2008-10-20 11:35:26