473,382 Members | 1,389 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,382 software developers and data experts.

Equivalent of Application.ProductVersion

UJ
Is there an equivalent to Application.ProductVersion for Websites?
Nov 14 '06 #1
3 3732
You could try:

System.Reflection.Assembly.GetExecutingAssembly().
GetName().Version.ToString()

--
Regards,

Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"UJ" <fr**@nowhere.comwrote in message
news:e$****************@TK2MSFTNGP04.phx.gbl...
Is there an equivalent to Application.ProductVersion for Websites?

Nov 14 '06 #2
UJ
Unfortunately that doesn't change when you recompile.

"Gregory Silvano" <ng@staturesoftware.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
You could try:

System.Reflection.Assembly.GetExecutingAssembly().
GetName().Version.ToString()

--
Regards,

Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"UJ" <fr**@nowhere.comwrote in message
news:e$****************@TK2MSFTNGP04.phx.gbl...
>Is there an equivalent to Application.ProductVersion for Websites?


Nov 14 '06 #3
Do you get 0.0.0.0 all the time? It is due to the web site compilation
model. There is no static dll with the code-behind assembly. Rather the
code-behind compiles together with the aspx server script dynamically at
runtime. You can use the VS 2003-stile compilation model where the
code-behind compiles into a static dll. Then you should be able to maintain
the version info better.

Here is Scott Guthrie's blog entry on the new compilation model:
http://weblogs.asp.net/scottgu/archi...07/432630.aspx

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"UJ" <fr**@nowhere.comwrote in message
news:eu*************@TK2MSFTNGP04.phx.gbl...
Unfortunately that doesn't change when you recompile.

"Gregory Silvano" <ng@staturesoftware.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>You could try:

System.Reflection.Assembly.GetExecutingAssembly() .
GetName().Version.ToString()

--
Regards,

Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"UJ" <fr**@nowhere.comwrote in message
news:e$****************@TK2MSFTNGP04.phx.gbl...
>>Is there an equivalent to Application.ProductVersion for Websites?



Nov 15 '06 #4

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

Similar topics

3
by: Michael Kellogg | last post by:
At the beginning of program execution, I want to compare the executing version of the program against the network copy to see if there's been an update. In the "Properties" window of an EXE, I can...
6
by: Mike E | last post by:
How is this set in visual c++. I assumed it was in the AssemblyInfo.cpp file, but the changes are never picked up and Application::ProductVersion keeps coming back empty. Help is appreciated.
1
by: DemonIT | last post by:
Hi, I am trying to set the status bar of my form to include the product name and product version. Here is my code: Private Sub initStatusBar() Dim sSBText as String =...
9
by: Chubbly Geezer | last post by:
Hi I want to check that users have the latest version of an app by checking it's version number against that held on the server. Would anyone know how to access this via code. Thanks
3
by: GrandpaB | last post by:
I have generated the following code: lblCompany.Text = "Company Name: " & Application.CompanyName lblProduct.Text = "Product Name: " & Application.ProductName lblVersion.Text = "Version " &...
5
by: Lyners | last post by:
I have a VB.NET application that is deployed to an end user. I would like to display on screen the application version of the application so that I know the end user id using the latest version of...
5
by: Aussie Rules | last post by:
Hi, How do I set the application productversion. I can see in the publish section where I can set it, but no matter what I set this to, the productversion is different Thanks
6
by: Aussie Rules | last post by:
Hi, I use the publish feature within Vs.net 2008, and have it set to increment on each build/publish I want to be able to display this as my application version number, but can not see how to...
1
by: Joachim Hofmann | last post by:
Hallo, - Woher wird diese Eigenschaft ermittelt? - Wenn ich eine Solution mit mehreren Projekten habe, müßte es dann der Eintrag in der Datei AssemblyInfo.vb sein, der da z.B. lautet...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.