Why Does My.Application.Info.Version.ToString Always Returns "1.0.0.0"
Feb 27, 2011The version in the Publish page of the project properties is set to 1.4.0.1, but My.Application.Info.Version.ToString returns "1.0.0.0"
View 7 RepliesThe version in the Publish page of the project properties is set to 1.4.0.1, but My.Application.Info.Version.ToString returns "1.0.0.0"
View 7 RepliesWe're using team build with AssemblyInfoTask to increment the build number in a nightly build. The build number is displayed in the application using My.Application.Info.Version.Build.This has been working fine for years. But since we branched the sources and started using file references instead of project references (have no idea if that's what causes the problem), the last build number is displayed instead of the current one.
The compiled files (dll's and exe's) have the correct build number, if checked by right clicking the file in Explorer and viewing detailed properties. However when the same exe-file is executed, the UI displays the previous build number.If I edit the AssemblyInfo.vb file manually (just set another number, save the file, and set it back again), both file properties in Explorer and the UI at runtime displays the correct build number. How can this happen? What can be done to avoid this strange behavior?
I have a XML file with the latest application version number, I have this loaded into a variable, how can i compare this against the application.info.version to see if it's the latest version??
View 3 RepliesI built a simple vb.net winforms project that pings IP addresses and logs the results. It works fine on most machines I've tried it on. I log the status result of the ping System.Net.NetworkInformation.IPStatus) by using the IPStatus.tostring method.
Normally this returns a text result such as "Success" or "TimedOut"Yesterday, on one machine it returned "65" ...which is not one of the enum values. I have a feeling it might be a combination of values. I ran some test code:
Dim status As System.Net.NetworkInformation.IPStatus
status = Net.NetworkInformation.IPStatus.Success
MsgBox(status.ToString)
Which returns "Success"And this: status = Net.NetworkInformation.IPStatus.BadDestination Or Net.NetworkInformation.IPStatus.BadHeader MsgBox(status.ToString)
Which returns "11050" I suspect the "65" I saw was the result of some combination of enum values. Is there any way I can change the code in my second example to show the text names of both values? That is... any way I can see ALL values in this variable?
why is it that in the properties i have set version to 1.2 as a decimal but when i call
MsgBox(My.Settings.version.ToString)
i get shown "1"
I'm wondering how do I get a version of an external executable when Launcher_Load, then after version is found I want it to Label1.Text = "[version]"I've tried searching through websites and from codes I found it didn't manage to do the job.
View 2 RepliesImports
System.IO
Imports
System.Windows.Forms
Imports
[CODE]...
I don't understand why nothing is being returned from the SQL)
i'm using VB 2010 Express and I want to change the Executable Version Info?
View 2 RepliesMy question is im rebuilding an app i made years ago but i want to add the auto update i have the file downloader down to a T but i dont wanna use the Click once auto-update So i want to read a text file from a online server and then check if the version info inside matches the my.setting.build string inside my application if it doesnt it opens theupdate.exe the that dose what i have it programmed to to
View 3 RepliesI would like to build a text string that is the build version of my program. In VB6 I would use the values retrieved from App.Version.Major/Minor. I have looked for something similar in VS2010 VB but unable to find it. I did find information on the .NET framework, but I am looking for a build version of my program.
View 3 RepliesI am developing an application that will run with a GUI when no commandline args are passed, but can also run invisibly if started from the commandline and passed necessary arguments. I have been asked to include a /version argument that will return a version number. For simplicity this version number can be stored in a variable. Without doing something like writing the version number out to a file, what is the best way for me to return this info to the caller? My app will almost always be started from a script, so the script will have to read the version number and make decisons based on the version.
View 2 Repliesunder my project I have the following
However when I use this code.
lblABOUT3.Text = "Version : "
lblABOUT3.Text += My.Application.Info.Version.Major.ToString()
lblABOUT3.Text += "." & My.Application.Info.Version.Minor.ToString
[Code]....
I want to add version info to my mobile device exe fileand apparently the following line is not supported in CF (windows mobile 6.0), ideas?:<Assembly: AssemblyFileVersion("1.0.0.0")>I want to be able to to right-click on the .exe after it is copied over to the PC and have the version displayed in a version tab just like any other .exe. I would then be able to read this version in code from a VB6 program.
View 1 RepliesHow they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?
And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?
BTW I am using VB if that makes any difference.
Let's say 10 desktop shortcuts, all with different names/icons, point to and can start the same exe application from the same directory. Is there any means for the application to know the distinct name of the shortcut that was doubled_clicked. Also is there any means for a running application to know if it was started by command line, by a double_click on the exe, by a double_click on a shortcut that points to it, or by another process' call?
View 4 RepliesIs it possible to change the application version without publishing the application? Because I'm going to make an auto updater which needs some version information to work, but I don't want to have an installer.
View 3 Replies1. What's the difference between ToString and ToString()? (i do know that ToString method is to cast numeric values to string but don't know how to get it to work)
2. Why do i need XML comment feature? is it necessary?
On the publish tab of My Project the correct current version is there, 1.1.0.0 and in Programs and Features under Control Panel it shows 1.1.0.0 but when I reference Application.ProductVersion I get 1.0.0.0.
View 2 RepliesOne of our technicians asked my to write a small library file in which he would pass a filename and an integer. The library would load the text file and find the integer in the text file referenced by the file name and return a string back to his program. He is working in a third party application that uses VB as its scripting language.So, not wanting to worry about the .net install on some of the older machines that he has his equipment installed on I decided to take a crack at C++ (VS 2010). I am doing applications development in C# and the last time I compiled any C++ code was in VS 6, but I though how hard can it be? Well I am typing here so things have taken a decidedly wrong turn. I started out with the C++ Side.
#include <WTypes.h>
#include <comutil.h>
#include <string.h>the BSTR. Tried SysAlloc, didnt work.
[code]....
If I pass a String to a BSTR as a parameter then pass it back again (like the file name) then the VB side reads in the entire string.
How can I get the versioning info which is located in the properties of a non-running application. In other words, something perhaps as simple as :[code...]
View 2 RepliesI have windows application in which I get currently windows logged in username using following environment property
System.Environment.UserName But when I ran application using visual studio, it works without any problem. But when I publish application & try to run it, it get System.Environment.Username value as nothing.
cause of this issue? Or any other alternative to get current system logged in username.
I have a 3rd party program that has an internal messaging system built into it. The messages are stored in SQL. What I am doing is writing a program that will query this database on a specific interval and if it finds a message for a specific user it will take the text of that message and send it to the users email address(ie. gmail, yahoo, etc.). The issue is when the program quesries I only want it to grab the message that have not been sent. Each message in the system gets an ID assigned to it so what I'm trying is everytime it finds a message to send to the user it will write the ID of that message to a text file so that next time the query comes around it will compare the ID in the text file to the most recent ID in the database and if it is newer message it will get it and send it. I'm not trying to display any data from the query, just take the messsage text and send it.
Public Sub LookForMessage()
'Bind database tables to datagrid view
cmd = New SqlCommand("SELECT * FROM dbo.tblMessageTo", con)
cmd2 = New SqlCommand("SELECT * FROM dbo.tblMessages", con)
[code]....
I would like to display the application version as in Help -> About in microsoft office. It's going to be displayed in a label maybe. I have this code but it does not work, it always displays 1.0.0.0..... -.-
Version = My.Application.Info.Version.ToString
I've written a really simple launcher app for my team at work to use. However I wrote it in VB.net Express 2010 so its using .NET 4. I need it to be compatible with older machines that are using .NET 2 or maybe 2.5. I don't want to force upgrading to a higher .net if its not needed. And in some cases we work on old machines that can't be upgraded. My app is really simple and I'll post the code if needed. I am still a noob, my coding is ugly, and this is a quick and dirty tool.
View 1 RepliesWell I just did an update on my application-i fixed a few major bugs and minor bugs and did some UI enhancements- my old version was 1.0.0.0 should it now be 1.0.1.1 or 1.0.1.0 or 1.1.0.0 or 1.1.0.1? I need to know when I should change each point...Should my revision increment increase by one every sing time, even if i updated the build? The Minor? Major? Please Help-I want my application to be as professional as possible.
View 9 RepliesI created an application in vb.net using visual studio 2010. I want to create an installation file of the application that will not be free with a license so I want to create a trial of 30 jours.
View 2 RepliesI need to display the version number of the application on the top bar of the application. I managed to crate a setup wizard but I have no idea how to manage the verions.
View 6 RepliesI have developed an application in VB.net which uses R Programming language. The library that help connect VB.net to R is called R-DCOM. The application requires the user to install R-Programming language into the user's computer. The application was working all fine until there was a version change in the R-Programming language. The specific libraries involved with this are: Interop.STATCONNECTORCLNTLib.dll, Interop.StatConnectorCommonLib.dll and Interop.STATCONNECTORSRVLib.dll. It also uses StatConnectorClnt.tlb, StatConnectorSrv.exe and StatConnLib.tlb to run the application. Is this something related to "DLL hell". Is there a fix to that I may not have to recompile and install the original code and install them to the user's computer all over again.
View 2 RepliesI would like to know how to speed up the new version of a vb.net 2008 desktop application. The old version of the vb.net 2008 dektop application ran extremely fast.Is there some kind of .net tool I can use to see where the bottle necks are located at?The new version is necessary since the production database will be changing in a month.
View 5 RepliesIf I create an application in VB.NET using Visual Studio 2008, what version of the .NET Framework do other people need to have in order to run my program? Is it the same every time, or does it depend on what the application actually does?
View 1 Replies