Skip to content

Commit 39fabd7

Browse files
authored
Merge branch 'master' into branch_regex_fix
2 parents a39ea13 + 043e4d8 commit 39fabd7

File tree

6 files changed

+79
-81
lines changed

6 files changed

+79
-81
lines changed

build.cake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ Task("Test")
173173
settings.Filter = "TestCategory!=NoMono";
174174
}
175175

176-
DotNetCoreTest(project.FullPath, settings, coverletSettings);
176+
// DotNetCoreTest(project.FullPath, settings, coverletSettings);
177+
DotNetCoreTest(project.FullPath, settings);
177178
}
178179

179180
// run using NUnit

docs/build-server-support/build-server/tfs-build-vnext.md renamed to docs/build-server-support/build-server/azure-devops

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Team Foundation Build (vNext) Setup
1+
# TFS Build or Azure DevOps Pipeline Setup
22
## Basic Usage
3-
In Team Foundation Build (the web based build system) you can call GitVersion either using the Command Line build step or install an extension / custom build step. The custom build step requires a one-time setup to import the GitVersion task into your TFS or VSTS instance.
3+
In Azure DevOps Pipeline (the web based build system) you can call GitVersion either using the Command Line build step or install an extension / custom build step. The custom build step requires a one-time setup to import the GitVersion task into your TFS or Azure DevOps Pipeline instance.
44

55
## Executing GitVersion
66
### Using GitVersion with the MSBuild Task NuGet Package
@@ -14,7 +14,7 @@ See [MSBuild Task](/usage/msbuild-task) for further instructions how to use the
1414
3. Set the Tool parameter to `<pathToGitVersion>\GitVersion.exe`.
1515
4. Set the Arguments parameter to `/output buildserver /nofetch`.
1616
5. If you want the GitVersionTask to update AssemblyInfo files add `updateAssemblyInfo true` to the Arguments parameter.
17-
6. If you want to update the build number you need to send a [logging command](https://github.com/Microsoft/vso-agent-tasks/blob/master/docs/authoring/commands.md) to TFS.
17+
6. If you want to update the build number you need to send a [logging command](https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md) to TFS.
1818

1919
### Using the custom GitVersion build step
2020
#### Installing
@@ -36,7 +36,7 @@ From a TFS build definition, select "Add a Step" and then in the Build category,
3636

3737
If you want the GitVersionTask to update AssemblyInfo files, check the box in the task configuration. For advanced usage, you can pass additional options to the GitVersion exe in the Additional arguments section.
3838

39-
The VSO build step can update your build number with GitVersion variables. See below for details.
39+
The Azure DevOps Pipeline build step can update your build number with GitVersion variables. See below for details.
4040

4141

4242
## Running inside TFS
@@ -68,6 +68,6 @@ Just checking the `Clean Repository` check box in the build definition settings
6868
You can force deletion of the whole folder and a re-clone containing all tags by settings the variable `Build.Clean` to `all`.
6969
This will take more time during build but makes sure that all tags are fetched.
7070
In the future it is planned to allow using `git.exe` instead of current `libgit2sharp` for syncing the repos which might allow other possibilities to solve this issue.
71-
For details see this [GitHub issue](https://github.com/Microsoft/vso-agent-tasks/issues/1218).
71+
For details see this [GitHub issue](https://github.com/Microsoft/azure-pipelines-tasks/issues/1218).
7272
* If running a build for a certain commit (through passing the commit SHA while queueing the build) all tags from the repository will be fetched, even the ones newer than the commit.
7373
This can lead to different version numbers while re-running historical builds.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pages:
2323
- Octopus Deploy: build-server-support/build-server/octopus-deploy.md
2424
- TeamCity: build-server-support/build-server/teamcity.md
2525
- Team Build (TFS): build-server-support/build-server/teambuild.md
26-
- TFS Build vNext: build-server-support/build-server/tfs-build-vnext.md
26+
- TFS Build vNext: build-server-support/build-server/azure-devops.md
2727
- Examples: examples.md
2828
- FAQ: faq.md
2929
- Why?: why.md

src/GitVersionTask.Tests/GitVersionTask.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="NUnit" Version="3.11.0"></PackageReference>
1818
<packagereference Include="NUnit3TestAdapter" Version="3.12.0"></packagereference>
1919
<PackageReference Include="Shouldly" Version="3.0.2"></PackageReference>
20-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.7.179" />
20+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.9.20" />
2121
</ItemGroup>
2222
<ItemGroup>
2323
<Content Include="Approved\**\*.txt" />

src/GitVersionTask/GitVersionTask.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<PrivateAssets>All</PrivateAssets>
3939
</PackageReference>
4040
<!--See https://github.com/Microsoft/msbuild/issues/3671 for reason for the ExcludeAssets against msbuild packagerefernces -->
41-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.7.179" ExcludeAssets="runtime" />
41+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.9.20" ExcludeAssets="runtime" />
4242
<PackageReference Include="UtilPack.NuGet.MSBuild" Version="$(PackageVersion_UtilPackNuGetMSBuild)">
4343
<PrivateAssets>all</PrivateAssets>
4444
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
Lines changed: 69 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,73 @@
11
{
2-
"id": "e5983830-3f75-11e5-82ed-81492570a08e",
3-
"name": "GitVersion",
4-
"friendlyName": "GitVersion Task",
5-
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
6-
"author": "GitVersion Contributors",
7-
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
8-
"category": "Build",
9-
"demands": [],
10-
"version": {
11-
"Major": "4",
12-
"Minor": "0",
13-
"Patch": "0"
14-
},
15-
"minimumAgentVersion": "1.83.0",
16-
"groups": [
17-
{
18-
"name": "additional",
19-
"displayName": "Additional Options",
20-
"isExpanded": false
21-
}
22-
],
23-
"instanceNameFormat": "GitVersion",
24-
"inputs": [
25-
{
26-
"name": "updateAssemblyInfo",
27-
"type": "boolean",
28-
"label": "Update AssemblyInfo files",
29-
"defaultValue": "false",
30-
"required": false,
31-
"helpMarkDown": "Whether to update versions in the AssemblyInfo files"
32-
},
33-
{
34-
"name": "updateAssemblyInfoFilename",
35-
"type": "string",
36-
"label": "Update Assembly File",
37-
"defaultValue": "",
38-
"required": false,
39-
"helpMarkDown": "Update versions in specified file",
40-
"groupName": "additional"
41-
},
42-
{
43-
"name": "additionalArguments",
44-
"type": "string",
45-
"label": "Additional GitVersion.exe arguments",
46-
"defaultValue": "",
47-
"required": false,
48-
"helpMarkDown": "Additional arguments to send to GitVersion.exe",
49-
"groupName": "additional"
2+
"id": "e5983830-3f75-11e5-82ed-81492570a08e",
3+
"name": "GitVersion",
4+
"friendlyName": "GitVersion Task",
5+
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
6+
"author": "GitVersion Contributors",
7+
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
8+
"category": "Build",
9+
"demands": [],
10+
"version": {
11+
"Major": "4",
12+
"Minor": "0",
13+
"Patch": "0"
5014
},
51-
{
52-
"name": "gitVersionPath",
53-
"type": "string",
54-
"label": "Path to GitVersion.exe",
55-
"defaultValue": "",
56-
"required": false,
57-
"helpMarkDown": "Optionally supply the path to GitVersion.exe",
58-
"groupName": "additional"
59-
},
60-
{
61-
"name": "preferBundledVersion",
62-
"type": "boolean",
63-
"label": "Prefer bundled GiVersion.exe",
64-
"required": false,
65-
"helpMarkDown": "If checked it will prefer the bundled version over a version found in path",
66-
"groupName": "additional"
67-
}
68-
],
69-
"execution": {
70-
"Node": {
71-
"target": "GitVersion.js",
72-
"argumentFormat": "",
73-
"workingDirectory": "."
15+
"minimumAgentVersion": "1.83.0",
16+
"groups": [{
17+
"name": "additional",
18+
"displayName": "Additional Options",
19+
"isExpanded": false
20+
}],
21+
"instanceNameFormat": "GitVersion",
22+
"inputs": [{
23+
"name": "updateAssemblyInfo",
24+
"type": "boolean",
25+
"label": "Update AssemblyInfo files",
26+
"defaultValue": "false",
27+
"required": false,
28+
"helpMarkDown": "Whether to update versions in the AssemblyInfo files"
29+
},
30+
{
31+
"name": "updateAssemblyInfoFilename",
32+
"type": "string",
33+
"label": "Update Assembly File",
34+
"defaultValue": "",
35+
"required": false,
36+
"helpMarkDown": "Update versions in specified file",
37+
"groupName": "additional"
38+
},
39+
{
40+
"name": "additionalArguments",
41+
"type": "string",
42+
"label": "Additional GitVersion.exe arguments",
43+
"defaultValue": "",
44+
"required": false,
45+
"helpMarkDown": "Additional arguments to send to GitVersion.exe",
46+
"groupName": "additional"
47+
},
48+
{
49+
"name": "gitVersionPath",
50+
"type": "string",
51+
"label": "Path to GitVersion.exe",
52+
"defaultValue": "",
53+
"required": false,
54+
"helpMarkDown": "Optionally supply the path to GitVersion.exe",
55+
"groupName": "additional"
56+
},
57+
{
58+
"name": "preferBundledVersion",
59+
"type": "boolean",
60+
"label": "Prefer bundled GitVersion.exe",
61+
"required": false,
62+
"helpMarkDown": "If checked it will prefer the bundled version over a version found in path",
63+
"groupName": "additional"
64+
}
65+
],
66+
"execution": {
67+
"Node": {
68+
"target": "GitVersion.js",
69+
"argumentFormat": "",
70+
"workingDirectory": "."
71+
}
7472
}
75-
}
7673
}

0 commit comments

Comments
 (0)