Re: Version Incrementation

Jeremy Byron <[email protected]> Wed, 23 Jan 2008 15:53:00 -0400
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
Just an FYI.  It's not a straight increment (like VB used to be).  From
the MSDN docs on AssemblyVersionAttribute Constructor:

<quote>
The format of the version string is: major. minor. build. revision.

When specifying a version, you have to at least specify major. If you
specify major and minor, you can specify an asterisk (*) for build. This
will cause build to be equal to the number of days since January 1, 2000
local time, and for revision to be equal to the number of seconds since
midnight local time, divided by 2.

If you specify major, minor, and build, you can specify an asterisk for
revision. This will cause revision to be equal to the number of seconds
since midnight local time, divided by 2.
</quote>

Jeremy

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Mike Andrews
Sent: Wednesday, January 23, 2008 3:45 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Version Incrementation


This is contained in your AssemblyInfo.cs or AssemblyInfo.VB file:

// Version information for an assembly consists of the following four
values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Place an * in BuildNumber or Revision to have them automatically
incremented. I believe with VB there's an option on the project
properties page to do this automatically. On Jan 23, 2008 1:37 PM, Steve
Abaffy <[email protected]> wrote:

> I have looked all over but cannot find where to set the version number

> for builds. I would like for each build of the program to increment=20
> the build number, but after repeatedly rebuilding the application it=20
> still shows build 1.0.0. Where do you set this in VS2005?
>
>
> Thanks
>