Skip to content

Commit 6c0ae3b

Browse files
committed
Fixed name of property for the XML file in common props file
further clarified use of version file and relation to properties and final version number.
1 parent 5248a4c commit 6c0ae3b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<BuildOutputPackagesDir Condition="'$(BuildOutputPackagesDir)'==''">$(BaseBuildOutputPath)packages\</BuildOutputPackagesDir>
4141

42-
<BuildVersionXmlFile Condition="'$(BuildVersionXmlFile)'==''">$(MSBuildThisFileDirectory)BuildVersion.xml</BuildVersionXmlFile>
42+
<BuildVersionXml Condition="'$(BuildVersionXmlFile)'==''">$(MSBuildThisFileDirectory)BuildVersion.xml</BuildVersionXml>
4343
<IsAutomatedBuild Condition="'$(IsAutomatedBuild)'=='' AND '$(APPVEYOR)'!=''">true</IsAutomatedBuild>
4444
<IsAutomatedBuild Condition="'$(IsAutomatedBuild)'==''">false</IsAutomatedBuild>
4545

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,23 @@ the `Directory.Build.props` file:
102102
</PropertyGroup>
103103
```
104104

105+
## BuildVersion.xml
106+
If the MSBuild property `BuildMajor` is not set, then the base build version is read from the repository file specified in the BuildVersion.xml, typically this is located
107+
at the root of a repository so that any child projects share the same versioning information. The location of the file
108+
is specified by an MSBuild property `BuildVersionXml`. The contents of the file are fairly simple and only requires
109+
a single `BuildVersionData` element with a set of attributes. The available attributes are:
110+
111+
|Name |Description|
112+
|-------------------|-----------|
113+
| BuildMajor | Major portion of the build number |
114+
| BuildMinor | Minor portion of the build number |
115+
| BuildPatch | Patch portion of the build number |
116+
| PreReleaseName | PreRelease Name of the CSemVer |
117+
| PreReleaseNumber | PreRelease Number of the CSemVer |
118+
| PreReleaseFix | PreRelease Fix of the CSemVer |
119+
120+
Only the Major, minor and Patch numbers are required.
121+
105122
## Building the tasks
106123
The tasks are pure C# so building the package simply involves building the
107124
src\CSemVer.Build.Tasks.sln

0 commit comments

Comments
 (0)