Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 880f212

Browse files
author
ivostoykov
committed
help and readmy with new contents
1 parent 302f8fa commit 880f212

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

help.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
SYNOPSIS
2+
23
ProjectBuildCounter.exe AssemblyInfo.cs [options]
34

45
DESCRIPTION
6+
57
ProjectBuildCounter changes VisualStudio assembly version
68

79
OPTIONS
@@ -27,12 +29,21 @@ USAGE
2729

2830
ProjectBuildCounter.exe AssemblyInfo.cs [options]
2931

32+
NOTE: Each part having spaces in path must be surrounded with double quotes
33+
3034
ProjectBuildCounter changes following properties:
3135
* AssemblyVersion
3236
* AssemblyFileVersion (unless nofile supplied)
3337
* AssemblyInformationalVersion
3438

3539
EXAMPLES
40+
"D:\full path to\ProjectBuildCounter.exe" $(ProjectDir)\AssemblyInfo.cs
41+
42+
if ProjectDir has space in the path then it also must be surrounded with double quotes:
43+
"D:\full path to\ProjectBuildCounter.exe" "$(ProjectDir)\AssemblyInfo.cs"
44+
45+
to bypass AssemblyFileVersion increment add -nofile option:
46+
"D:\full path to\ProjectBuildCounter.exe" "$(ProjectDir)\AssemblyInfo.cs" -nofile
3647

3748
MORE
3849
Some videos might be found here:

readme.txt

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
ProjectBuildCounter is a small utility that auto increments the build number of Visual Studio projects. Increment is made on each build nevertheless it is Debug or Release.
1+
ProjectBuildCounter is a small utility that auto increments the build
2+
number of Visual Studio projects.
3+
Increment is made on each build nevertheless it is Debug or Release.
4+
View help.txt for HOWTO.
25

3-
This tool manipulates Properties\AssemblyInfo.cs file of a project. As the file name assume it contains somewhere in the contents the product version. It has following form Major, Minor, Build and Release as shown below:
6+
This tool manipulates Properties\AssemblyInfo.cs file of a project.
7+
As the file name assume it contains somewhere in the contents the
8+
product version. It has following form Major, Minor, Build and
9+
Release as shown below:
410

511
[assembly: AssemblyVersion("1.0.13.2165")]
612

713
ProjectBuildCounter reads AssemblyInfo.cs file and increments versions using following logic:
814

9-
* Revision number (4th position) is incremented from 1 to 9999. When exceed the upper bound Build number is incremented and Release is reset to one.
10-
* Build number (3rd position) is incremented from 1 to 999. When it goes beyond previous number (Minor) is incremented and build counter is reset to one.
11-
* Minor is incremented from 1 to 99. When current number goes above 99 Major is incremented and Minor is reset to one.
15+
* Revision number (4th position) is incremented from 1 to 9999.
16+
When exceed the upper bound Build number is incremented and
17+
Release is reset to one.
18+
* Build number (3rd position) is incremented from 1 to 999.
19+
When it goes beyond previous number (Minor) is incremented
20+
and build counter is reset to one.
21+
* Minor is incremented from 1 to 99. When current number goes
22+
above 99 Major is incremented and Minor is reset to one.
1223

1324

1425
Changes in ProjectBuildCounter 1.0.196
@@ -44,7 +55,8 @@ Changes in ProjectBuildCounter 1.0.101.1858
4455
New features
4556
------------
4657

47-
* Added second parameter allowing to increment particular part of the version - Major, Minor, Build or Release.
58+
* Added second parameter allowing to increment particular part of
59+
the version - Major, Minor, Build or Release.
4860

4961

5062

0 commit comments

Comments
 (0)