473,666 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading the actual vb.net project published build #

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 + .Version.Minor / 10
+ .Version.Build / 100, "0.00")
End With

All I get is Version: 1.0 even though the actual publish is
1.1.150??? Minor and build are both 0
Sep 21 '08 #1
3 1214
My.Application. Info.Version.To String

"barcrofter " <jd*****@gmail. comwrote in message
news:3a******** *************** ***********@p10 g2000prf.google groups.com...
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 + .Version.Minor / 10
+ .Version.Build / 100, "0.00")
End With

All I get is Version: 1.0 even though the actual publish is
1.1.150??? Minor and build are both 0
Sep 21 '08 #2
On Sep 21, 2:44*pm, "Gillard" <gillard_george s@@@@@@@@@hotma il.com>
wrote:
My.Application. Info.Version.To String

"barcrofter " <jd.p...@gmail. comwrote in message

news:3a******** *************** ***********@p10 g2000prf.google groups.com...
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 + .Version.Minor / 10
+ .Version.Build / 100, "0.00")
End With
All I get is Version: 1.0 even though the actual publish is
1.1.150??? *Minor and build are both 0
ok My.Application. Info.Version.To String reads 1.0.0.0 which is the
problem.

is this a feature of the express edition?
Sep 24 '08 #3
I found the following post from an Andrej Tozon in 2006: (full context:
http://social.msdn.microsoft.com/for...4-b623db6ba87b)
The version you're currently displaying is not the published version, but an
application (assembly) version. Those version numbers aren't the same and
are not synchronized. To use the published version, use
My.Application. Deployment.Curr entVersion:

If My.Application. IsNetworkDeploy ed Then
lblLabel.Text = My.Application. Deployment.Curr entVersion.ToSt ring()
End If

Note the if statement above: the Deployment.Curr entVersion is only available
when the application is deployed with ClickOnce, which means it won't be
available when deployed otherwise or run within Visual Studio, when
debugging (accessing it will throw an exception).

"barcrofter " <jd*****@gmail. comwrote in message
news:e9******** *************** ***********@r15 g2000prh.google groups.com...
On Sep 21, 2:44 pm, "Gillard" <gillard_george s@@@@@@@@@hotma il.com>
wrote:
My.Application. Info.Version.To String

"barcrofter " <jd.p...@gmail. comwrote in message

news:3a******** *************** ***********@p10 g2000prf.google groups.com...
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 + .Version.Minor / 10
+ .Version.Build / 100, "0.00")
End With
All I get is Version: 1.0 even though the actual publish is
1.1.150??? Minor and build are both 0
ok My.Application. Info.Version.To String reads 1.0.0.0 which is the
problem.

is this a feature of the express edition?

Sep 24 '08 #4

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

Similar topics

0
1074
by: Vikram Sorathia | last post by:
hi, I am a novice developer in ECLIPSE. I am interested in developing web services on Eclipse Platform. I am trying to install WebTools Platform from the following site: http://www.eclipse.org/webtools/ According to the web site, the latest Stable Build is 1.0M5 published on June 30, 2005.
7
3781
by: SteveB | last post by:
Being a C++ developer, I'm not used to a build performing automagically. For instance, App.config automatically being renamed and placed in the bin\debug folder and project.en-US.resx resource files mysteriously producing satellite DLLs. Yeah this is convienent, but where in the project/IDE is this defined as 'build steps'? How can I view the actual makefile that the VS.NET IDE uses to build the files in a project? Why doesn't the IDE produce...
2
9427
by: bhreddy | last post by:
Hi All, Can someone help me out how can I resolve the error "0xC0000005: Access violation reading location 0x513112f4"? Steps I followed... 1. I ran the application at DOS prompt 2. After some time my application got crashed and windows popped up a window asking for debug, send error report. 3. Clicking on Debug opens my workspace in .Net IDE.
2
965
by: segue | last post by:
Hi; I'm not able to get asp pages to process. I get specified module could not be found. I tried running dependency walker against this. Also, if I create a new web project, I don't get a bin directory or an assembly created just the project and default aspx page for the project. So I can't run dependency walker against the new project to get past the specified module error.
1
1228
by: JJ | last post by:
I'm having problems trying to publish an ASP.NET project from VS2005 and was hoping to get some pointers in the right direction. The project works fine from my development system using the internal server (Cassini). Then I use Build/Publish Web Site to publish the app to another server. I specify a URL to where I want it published (http://someserver/MyAppDir). At the time I first publish, the virtual directory MyAppDir does not exist
4
20396
by: Hafner Avi | last post by:
Hi, I am trying to find out what is the difference between Web-Site and Web-Application-Project in Visual Studio 2005 ? People – what do you recommend ?
13
1754
by: Chet C | last post by:
I am trying to make a simple RSS reader using asp.net (VB) and am getting an error when I run the project locally (works fine after being published) Here is my basic code: Sub Page_Load(sender as Object, e as EventArgs) Dim url As String = _ "http://www.dailyaudiobible.com/wordpress/?feed=rss2" recentPosts.DataSource = GetRSSFeed(url)
0
2552
by: rmgalante | last post by:
I was developing a large web site in VS 2005 as a web site project. I was having problems with the VS 2005 publish tool. It was slow, and provided no feedback. It has other issues as outlined below. Here is my solution. I converted the application from a Web Site Project (WSP) to a Web Application Project (WAP). Go to http://webproject.scottgu.com/ and read about the Web Application Project in VS 2005. Why?
8
4350
by: Peter Bradley | last post by:
Hi, I wonder if anyone can help me out? I'm trying to implement an EPP (rfc4934 and rfc4930) client. So far I've managed to connect and authorise using an X509 Certificate. This should elicit a <greetingresponse from the server, and it's the reading of this response that is giving me a bit of grief. The response shoud be
0
8454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8878
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8785
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8560
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6200
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5671
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.