You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
110
-
at the root of a repository so that any child projects share the same versioning information. The location of the file
111
-
is specified by an MSBuild property `BuildVersionXml`. The contents of the file are fairly simple and only requires
112
-
a single `BuildVersionData` element with a set of attributes. The available attributes are:
114
+
If the MSBuild property `BuildMajor` is not set, then the base build version is read from the
115
+
repository file specified in the BuildVersion.xml, typically this is located at the root of a
116
+
repository so that any child projects share the same versioning information. The location of the
117
+
file is specified by an MSBuild property `BuildVersionXml`. The contents of the file are fairly
118
+
simple and only requires a single `BuildVersionData` element with a set of attributes. The
119
+
available attributes are:
113
120
114
121
|Name |Description|
115
122
|-------------------|-----------|
@@ -122,6 +129,20 @@ a single `BuildVersionData` element with a set of attributes. The available attr
122
129
123
130
Only the Major, minor and Patch numbers are required.
124
131
132
+
### Example BuildVersion.XML
133
+
```xml
134
+
<BuildVersionData
135
+
BuildMajor = "5"
136
+
BuildMinor = "0"
137
+
BuildPatch = "0"
138
+
PreReleaseName = "alpha"
139
+
/>
140
+
```
141
+
This will set the build version to `5.0.0-alpha` for all projects in the repository
142
+
125
143
## Building the tasks
126
-
The tasks are pure C# so building the package simply involves building the
127
-
src\CSemVer.Build.Tasks.sln
144
+
The build uses a common PowerShell module pattern for Ubiquity.NET projects. To build the sources
145
+
use the `Build-All.ps1` script. You can also open the `src/Ubiquity.NET.Versioning.slnx` in any
146
+
editor/IDE that has support for the slnx solution format. (Visual Studio 2022 is used but other
147
+
options may work, though they are not supported. If you have experience then PRs are welcome for
148
+
additional support - but such PRs ***MUST NOT*** break the VS support.)
0 commit comments