Results 1 to 16 of 16

Thread: where can I change versioning info stuff?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    where can I change versioning info stuff?

    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?
    Last edited by MrPolite; Jul 7th, 2002 at 04:16 AM.

  2. #2
    hellswraith
    Guest
    Double click the AssemblyInfo.vb file in your project. It is in there.

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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

  4. #4
    Junior Member
    Join Date
    Jul 2002
    Posts
    20
    Manually change the numbers.

    Also, thanks to Hellswraith for pointing this out. I had also been wondering about this for a while myself.

  5. #5
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    How do you call/show the version number though and title, ect?
    Any tutorials on how?

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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

  7. #7
    Lively Member
    Join Date
    Aug 2001
    Posts
    65
    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

  8. #8
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401

    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.
    I have

    Code:
    <Assembly: AssemblyVersion("1.0.*")>
    but the "x" part of it is not upgrading with each build.
    "The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.

    Windows & Web Developer
    Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
    Sutherland Shire, Sydney Australia
    www.stingrae.com.au
    Developer of Arnold - Gym & Martial Arts Database Management System
    www.gymdatabase.com.au

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    which has four parts: Major, Minor, Revision, and Build
    You only have 3 parts in yours.....Major, Minor, Revision. You are missing one. Try this:
    Code:
    <Assembly: AssemblyVersion("1.0.0.*")>
    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.

  10. #10
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401
    thanks for that.

    "The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.

    Windows & Web Developer
    Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
    Sutherland Shire, Sydney Australia
    www.stingrae.com.au
    Developer of Arnold - Gym & Martial Arts Database Management System
    www.gymdatabase.com.au

  11. #11
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  12. #12

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    VS increases the build number whenever it gets horny.. it depends how horny it gets though
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  13. #13
    Addicted Member
    Join Date
    Apr 2003
    Location
    Australia
    Posts
    252
    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.

  14. #14
    New Member
    Join Date
    Nov 2003
    Location
    Romania
    Posts
    13

    Re: where can I change versioning info stuff?

    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
    Yet, There is so much to be done.

  15. #15

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: where can I change versioning info stuff?

    wow this is the fourth time this thread has been bumped up
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  16. #16
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: where can I change versioning info stuff?

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width