473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Build Date from ClickOnce Assembly?

Hi,

How can I knwo the BuildDate from an application distributed by ClickOnce?

When I use "System.IO.File.GetLastWriteTime(objAssembly.Locat ion)" or
"System.IO.File.GetCreationTime(objAssembly.Locati on)" it returns me the
date and time that the user downloaded and isntaled the application, butn ot
the date it was published...
Thansk a lot in advance,

Pieter

PS: It should work also for .NET 1.1 applications...


Nov 6 '07 #1
2 1542
Someone else could perhaps have a better solution but :
- my personal preference is to use the deployment version
- you also have the automatic versionaing that is based on the current
date/time. So either use this or convert it back to the date.

Finally googling gives me :
http://www.codinghorror.com/blog/archives/000264.html (in partriuclar
reading the build date from the PE file).
"Pieter" <pi****************@hotmail.coma écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
Hi,

How can I knwo the BuildDate from an application distributed by ClickOnce?

When I use "System.IO.File.GetLastWriteTime(objAssembly.Locat ion)" or
"System.IO.File.GetCreationTime(objAssembly.Locati on)" it returns me the
date and time that the user downloaded and isntaled the application, butn
ot the date it was published...
Thansk a lot in advance,

Pieter

PS: It should work also for .NET 1.1 applications...


Nov 6 '07 #2
Thanks for the help!

Unfortunately I can't use the deployment version, because the applications
aren't alwaus deployed :-) I need this for a module that is used in
different applications, and need to knwo the build date of it's
parent-assembly. But this parent assembly can be 1.1, 2.0, deployed by
clickOnce, deployed 'normally', ...

I'll give the third solution a try...

"Patrice" <http://www.chez.com/scribe/wrote in message
news:eM**************@TK2MSFTNGP04.phx.gbl...
Someone else could perhaps have a better solution but :
- my personal preference is to use the deployment version
- you also have the automatic versionaing that is based on the current
date/time. So either use this or convert it back to the date.

Finally googling gives me :
http://www.codinghorror.com/blog/archives/000264.html (in partriuclar
reading the build date from the PE file).
"Pieter" <pi****************@hotmail.coma écrit dans le message de news:
%2****************@TK2MSFTNGP04.phx.gbl...
>Hi,

How can I knwo the BuildDate from an application distributed by
ClickOnce?

When I use "System.IO.File.GetLastWriteTime(objAssembly.Locat ion)" or
"System.IO.File.GetCreationTime(objAssembly.Locat ion)" it returns me the
date and time that the user downloaded and isntaled the application, butn
ot the date it was published...
Thansk a lot in advance,

Pieter

PS: It should work also for .NET 1.1 applications...



Nov 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: cameron | last post by:
Is it possible to get the build date, (not the version), of a dll? -Cam
12
by: Sitar | last post by:
Hi, I would like to include the build time in my application. It's for my ? / About ... menu. It's annoying to change the label.Text property for every release. Is it possible to do so? ...
5
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
2
by: Roger Helliwell | last post by:
Hey gang, What's the best way to implement a Build version (or "last updated" date) in my web-app? I have a footer in my master page that displays the application's name and copyright info etc....
1
by: Daniel Knöpfel | last post by:
Hello Im triying to create an installer using ClickOnce and visual studio 2005. This works fine on my computer, but as soon as i start the created installer on another pc I get the following...
2
by: Pieter | last post by:
Hi, How can I knwo the BuildDate from an application distributed by ClickOnce? When I use "System.IO.File.GetLastWriteTime(objAssembly.Location)" or...
3
by: Peter Carlson | last post by:
Our app uses the following chain of urls: 1. yoursite.com/launch.php?room=00000271 - validates the roomid appends an appropriate server variable and encrypts and adds a hash and sends on to #2 ...
4
by: =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?= | last post by:
Hi, I have a .NET / COM DLL. On the client the COM object is created by a application using VBScript (Windows Scripting). I try to deploy the .NET / COM DLL using ClickOnce deployment. I know...
3
by: barcrofter | last post by:
This seems like a silly question -- How can I read the actual publish version build data??. When I use: With My.Application.Info Version.Text = "Version: " _ + Format(.Version.Major +...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.