In VB6 when you go to project properties (I think) there is a place where you can select the version of the app, fill out company info and those stuff. I looked in the menus, but I cant find such a thing.... where is this located in VS.NET?
Printable View
In VB6 when you go to project properties (I think) there is a place where you can select the version of the app, fill out company info and those stuff. I looked in the menus, but I cant find such a thing.... where is this located in VS.NET?
Double click the AssemblyInfo.vb file in your project. It is in there.
thanks man :)
I have another question about the assembly version. When you use the "*" character it means that that number will be the ONLY number to change during the build? do I have to manually change the numbers or should I leave it the way it is? my app ver is 1.0.917.38123 currently:confused:
Manually change the numbers.
Also, thanks to Hellswraith for pointing this out. I had also been wondering about this for a while myself.
How do you call/show the version number though and title, ect?
Any tutorials on how?
Check the help for a page by this name 'App Object Changes in Visual Basic .NET'. The following can be reached through the Application object:
ProductName
ProductVersion
CompanyName
ExecutablePath
Finally able to get back in here, these forums haven't been working for me for the last week or two.
Thanks for that Edneeis, thats got it working now. It seems they have an AssemblyTitle line but no way to call it as it's not supported, wonder why they left it like that.
Thanks again
I haveQuote:
Version Numbering Changes in Visual Basic .NETSee Also
App Object Changes in Visual Basic .NET | Attributes
In Visual Basic 6.0, setting the Major, Minor, and Revision properties of the App object controlled the version number for an application. For example, setting Major to 1, Minor to 2, and Revision to 3 resulted in a version number of 1.2.0.3.
In Visual Basic .NET, the version number properties are replaced by the AssemblyVersion attribute, which has four parts: Major, Minor, Revision, and Build. For the above example, the resulting version number would be 1.2.3.x, where x is a build number that is incremented each time the assembly is built.
but the "x" part of it is not upgrading with each build. :confused:Code:
<Assembly: AssemblyVersion("1.0.*")>
You only have 3 parts in yours.....Major, Minor, Revision. You are missing one. Try this:Quote:
which has four parts: Major, Minor, Revision, and Build
Also, I am not sure about this, but will the build number increase when building in debug mode? Not sure about that. Someone may want to check that out sometime. If I get to it first, I will post the results.Code:<Assembly: AssemblyVersion("1.0.0.*")>
thanks for that.
;)
I have seen strange behavior of this build number. Sometimes it does not increase by building, some times it just increase out of order. I dont know whats happening. Moving your application to another dev machine also changes the build number.
VS increases the build number whenever it gets horny.. it depends how horny it gets though :rolleyes:
Kudos to hellswraith for pointing me out the AssemblyInfo.vb. I used to Open the EXE everytime I finish building it and ready to release, and change the CompanyName from there. :D
It's so nice when you found needed answer without posting just searching a bit. Thanks hellswraith for poiting to assembly file, I was searching same info as MrPolite
wow this is the fourth time this thread has been bumped up:D
I can't remember exactly how it works as it's a while since I read about it, but when you accept defaults for the build and revision numbers they are set according to the current date and time. I think that the build is based on the date and the revision is based on the time. I'll see if I can find the place I read this and post a link.
Also, you can get some of the values from the AsemblyInfo file using the Application class but you can get them all using Reflection.