473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Build number not incrementing on compile

In my project's "AssemblyInfo.v b" 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
Nov 21 '05 #1
3 1704
"Michael Kellogg" <mk******@WEDEL IVERcc3.com> schrieb:
In my project's "AssemblyInfo.v b" 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=20 401&language=en >

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

Nov 21 '05 #2
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> 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.publi c.windows.file_ system/msg/8702261793
ca568d?q=Assemb lyVersion+defau lt&hl=en&lr=&ie =UTF-8&oe=UTF-8&rnum=1

Thanks for the help.

--
Michael Kellogg
Nov 21 '05 #3
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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
25618
by: Steven Bethard | last post by:
Is there a good way to determine if an object is a numeric type? Generally, I avoid type-checks in favor of try/except blocks, but I'm not sure what to do in this case: def f(i): ... if x < i: ... The problem is, no error will be thrown if 'i' is, say, a string:
1
2136
by: shea martin | last post by:
Is there a way to keep track of a build number within a program? Essentially incrementing a #define everytime the program is compiled (at link time would be even better, though tougher to implement). something like __DATE__ or __TIME__, perhaps __BUILD__? i.e., void printVersion() const { cout << "My Program\n(build __BUILD__)\n"; }
14
1737
by: Jason Heyes | last post by:
I have read item 26 of "Exceptional C++" that explains a way of minimising compile-time dependencies and, therefore, a way to improve compile speeds. The procedure involves replacing #include directives with forward declarations from within header files. However, a potentially large number of source files may have previously relied on the...
8
1267
by: EoRaptor013 | last post by:
Help, I'm stuck! I have a Customer table: ID Name -- --------------------- 1234 Christopher's Surf Boards 4321 Christina's Nails I have to build a Account table: ID GPID -- --------------------
8
3220
by: Robert Misiak | last post by:
Is it possible to manually change the auto-build number used in VS.NET? Thanks, Robert
5
5398
by: cameron | last post by:
Is it possible to get the build date, (not the version), of a dll? -Cam
3
4244
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET Framework 2.0) IDE, it works fine, but if I use NANT (Build Automation) it gives me an error as follows:
4
2390
by: RAM | last post by:
Hello, I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain me please the difference betwen Build and Rebuild commands? Thank you. /RAM/
6
2587
by: John | last post by:
I have written a VB.NET DLL that is called by a third party program. If I make any changes in the DLL and then try to replace my DLL file the third party program will abort, saying that the DLL version number does not match to the DLL that it was linked against. How can I recompile my DLL without incrementing the version number? I don't see...
0
7689
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.