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
Copy file name to clipboardExpand all lines: README_Development.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,11 @@ You can **override behavior with certain strings in commit messages** ([see conf
171
171
> `GitVersion`**does not work when projects / solutions are built in Visual Studio**. This is because `GitVersion` developers only support later .NET LTS and the tool needs .NET Core runtime (see [this Github Discussion](https://github.com/GitTools/GitVersion/discussions/4130)). `Visual Studio` uses stand-alone `MSBuild` that is built *for .NET Framework*, and this cannot be changed (Microsoft only releases MsBuild that is built for .NET Framework).
172
172
> When **building or packaging with the `dotnet` tool**, **`GitVersion` works** because the `dotnet` tool contains an embedded MSBuild that is built for .NET (Core) (see [this Stack Overflow answer](https://stackoverflow.com/questions/79584977/how-can-i-force-visual-studio-to-use-msbuild-for-net-9)).
173
173
174
-
In order to use GitVersion efficiently, you should tag at least the versions of main branch that are released ot published somewhere. If you know the version you want to asign, can do this on a local repostory using something like this:
174
+
### Manually Handling Tags
175
+
176
+
In order to use GitVersion efficiently, you should **tag at least the versions of main branch that are released ot published somewhere**.
177
+
178
+
If you know the version tag you want to asign, you can do this on a local repostory using something like this:
175
179
176
180
~~~powershell
177
181
# Tag the current commit on main as 1.4.0:
@@ -181,7 +185,7 @@ git tag -a v1.4.0 -m "Release 1.4.0"
181
185
git push origin v1.4.0
182
186
~~~
183
187
184
-
Manual tagging is error prone, and it is easy to create a wrong tag. One mitigation is to run a script where after updating the main branch, the current version is calculated by GitVersion (which correctly increments major, minor and patch numbers when commits are added and branched merged), then use this version in tagging. Below is a **PowerShell script* that tags the `main` branch with correct version number*:
188
+
Manual **tagging a branch**is error prone, and it is easy to create a wrong tag. One mitigation is to run a script where the **current version** is **calculated by GitVersion** (which correctly increments major, minor and patch numbers when commits are added and branched merged), then use this version in tagging. Below is a **PowerShell script** that **tags the `main` branch with correct version number**:
185
189
186
190
~~~powershell
187
191
# Update the main branch:
@@ -194,8 +198,6 @@ git tag -a "v${CurrentVersion}" -m "Released version ${CurrentVersion}"
194
198
git push origin "v${CurrentVersion}"
195
199
~~~
196
200
197
-
**Manually Handling Tags**:
198
-
199
201
It may happen that come commits were wrongly tagged by version tags. In such cases, manual interventions with checking, deleting or re-aplying correct tags may be necessary. Here are some basic tips.
200
202
201
203
Showing tags:
@@ -254,7 +256,7 @@ See detailed workflow on the Wiki .
254
256
255
257
This section contains unarranged quick notes on what needs to be done.
256
258
257
-
### Versioning
259
+
**Versioning**:
258
260
259
261
* Documentation
260
262
* Wiki:
@@ -263,11 +265,11 @@ This section contains unarranged quick notes on what needs to be done.
263
265
* scripts/TagVersion.ps1:
264
266
* Restore branch after operation: move `$currentBranch = ...` before try, restore in finally block
265
267
* Check Bump (ensure all variants work)
266
-
* add Bump...Num *NumBumps* - specifies how much to bump
267
-
* Copy the right version of script and GitVersion.yml to:
268
-
* IGLibScripts
269
-
* All IGLib Core repos
270
-
* Selected IGLib legacy repos
268
+
* Add Bump...Num *NumBumps* - specifies how much to bump
269
+
* Copy the right version of script and GitVersion.yml to:
0 commit comments