Skip to content

Commit 00b9951

Browse files
authored
Merge pull request #1617 from arturcic/fix/GH-1610
GitVersion .Net Core Azure DevOps task fix
2 parents 1222c51 + 0f334dd commit 00b9951

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/version.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class BuildVersion
1414

1515
if (!string.IsNullOrWhiteSpace(gitVersion.BuildMetaData)) {
1616
semVersion += "-" + gitVersion.BuildMetaData;
17-
tfxVersion += "." + gitVersion.BuildMetaData;
17+
tfxVersion += "." + DateTime.UtcNow.ToString("yyMMddHH");
1818
}
1919

2020
return new BuildVersion

src/GitVersionTfsTask/GitVersion.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export class GitVersionTask {
4545
parser.addArgument(
4646
[ '-r', '--runtime'],
4747
{
48-
help: '[mono|netcore]',
49-
defaultValue: 'mono'
48+
help: '[full|netcore]',
49+
defaultValue: 'full'
5050
}
5151
);
5252

@@ -58,7 +58,7 @@ export class GitVersionTask {
5858
toolRunner.arg(gitVersionPath);
5959
break;
6060

61-
case 'mono':
61+
case 'full':
6262
default:
6363
const isWin32 = os.platform() == "win32";
6464
if (isWin32) {

0 commit comments

Comments
 (0)