Skip to content

Commit 519ddd9

Browse files
committed
Upgrade build.ps1 because latest version of CAKE broke the build.
1 parent bf92c39 commit 519ddd9

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Tools/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Addins/
22
Cake*/
3-
GitVersion.CommandLine/
3+
GitVersion.CommandLine.*/
44
Hugo/
55
packages/
6+
xunit.runner.console.*/
67
nuget.exe
78
packages.config.md5sum

build.ps1

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ No tasks will be executed.
1616
.PARAMETER ScriptArgs
1717
Remaining arguments are added here.
1818
.LINK
19-
http://cakebuild.net
19+
https://cakebuild.net
2020
#>
2121

2222
[CmdletBinding()]
@@ -31,12 +31,16 @@ Param(
3131
[string[]]$ScriptArgs
3232
)
3333

34-
$CakeVersion = "0.19.5"
34+
$CakeVersion = "0.22.2"
3535
$DotNetChannel = "preview";
36-
$DotNetVersion = "1.0.0-preview2-003121";
37-
$DotNetInstallerUri = "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1";
36+
$DotNetVersion = "1.0.4";
37+
$DotNetInstallerUri = "https://dot.net/v1/dotnet-install.ps1";
3838
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
3939

40+
# Temporarily skip verification and opt-in to new in-proc NuGet
41+
$ENV:CAKE_SETTINGS_SKIPVERIFICATION='true'
42+
$ENV:CAKE_NUGET_USEINPROCESSCLIENT='true'
43+
4044
# Make sure tools folder exists
4145
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
4246
$ToolPath = Join-Path $PSScriptRoot "tools"
@@ -82,10 +86,11 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
8286

8387
Remove-PathVariable "$InstallPath"
8488
$env:PATH = "$InstallPath;$env:PATH"
85-
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
86-
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
8789
}
8890

91+
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
92+
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
93+
8994
###########################################################################
9095
# INSTALL NUGET
9196
###########################################################################

0 commit comments

Comments
 (0)