PC Review


Reply
Thread Tools Rate Thread

Build number not incrementing on compile

 
 
Michael Kellogg
Guest
Posts: n/a
 
      23rd Mar 2005
In my project's "AssemblyInfo.vb" file, I have set the following for
versioning:
<Assembly: AssemblyVersion("3.0.*")>

Yet every time I rebuild, I get the exact same build number and private
part number: 3.0.1907.20745

What am I doing wrong, here? I read that the build (1907) and private part
(20745) numbers should be set based on the days past a certain date, and
seconds since midnight, respectively.

TIA
--
Michael
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      23rd Mar 2005
"Michael Kellogg" <(E-Mail Removed)> schrieb:
> In my project's "AssemblyInfo.vb" file, I have set the following for
> versioning:
> <Assembly: AssemblyVersion("3.0.*")>
>
> Yet every time I rebuild, I get the exact same build number and private
> part number: 3.0.1907.20745
>
> What am I doing wrong, here? I read that the build (1907) and private
> part
> (20745) numbers should be set based on the days past a certain date, and
> seconds since midnight, respectively.


Structure of version numbers and methods to determine the version number
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=versioning&lang=en>

VB6 style versioning
<URL:http://www.jmedved.com/files.asp?id=20401&language=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
Michael Kellogg
Guest
Posts: n/a
 
      23rd Mar 2005
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote:

> http://dotnet.mvps.org/dotnet/faqs/?...ioning&lang=en


Hmm. So it gets incremented at each Visual Studio instantiation. I guess
that makes sense for a big shop, but I'm a one-man show and rebuilding
all the time during beta. I might do big revisions two or three times a
day.

Okay, I'm glad I understand that, now. I thought it was like the old VB6
where it increments upon every compilation.

Here's another link a friend sent me on this:
http://groups-
beta.google.com/group/microsoft.public.windows.file_system/msg/8702261793
ca568d?q=AssemblyVersion+default&hl=en&lr=&ie=UTF-8&oe=UTF-8&rnum=1

Thanks for the help.

--
Michael Kellogg
 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      24th Mar 2005
In Jeffrey Richter's book, "Applied Microsoft .Net Framework
Programming", he states not to use the automatic versioning:

"This feature is a bug and shouldn't be used because changing the
assembly version number will break any assemblies that reference this
assembly. The AssemblyInfo.vb file that Visual Studio .Net
automatically creates for you when you create a new project is in
error: it sets the AssemblyVersion attribute so that it's major and
minor parts are 1.0 and that the build and revision parts are
automatically updated by the compiler. You should definitely modify
this file and hard-code all four parts of the assembly version number."

Chapter 2 of his book goes into detail about the three version numbers
than an assembly has.

Chris

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Order Number Unique Number Auto Incrementing Louise54 Microsoft Access Database Table Design 8 28th Apr 2008 05:33 PM
Build/Compile in .net 2.0 loga123 Microsoft ASP .NET 0 14th Mar 2007 12:04 AM
May build, but won't compile.. Allen Maki Microsoft VC .NET 1 16th May 2006 01:51 PM
Re: auto incrementing the build number Leon Lambert Microsoft Dot NET 3 4th Aug 2004 05:45 PM
Re: auto incrementing the build number Cowboy \(Gregory A. Beamer\) [MVP] Microsoft Dot NET 0 2nd Aug 2004 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 PM.