Browse Source

Upgrade build.ps1 because latest version of CAKE broke the build.

pull/231/merge
rstam 8 years ago
parent
commit
519ddd9250
  1. 3
      Tools/.gitignore
  2. 17
      build.ps1

3
Tools/.gitignore

@ -1,7 +1,8 @@
Addins/ Addins/
Cake*/ Cake*/
GitVersion.CommandLine/
GitVersion.CommandLine.*/
Hugo/ Hugo/
packages/ packages/
xunit.runner.console.*/
nuget.exe nuget.exe
packages.config.md5sum packages.config.md5sum

17
build.ps1

@ -16,7 +16,7 @@ No tasks will be executed.
.PARAMETER ScriptArgs .PARAMETER ScriptArgs
Remaining arguments are added here. Remaining arguments are added here.
.LINK .LINK
http://cakebuild.net
https://cakebuild.net
#> #>
[CmdletBinding()] [CmdletBinding()]
@ -31,12 +31,16 @@ Param(
[string[]]$ScriptArgs [string[]]$ScriptArgs
) )
$CakeVersion = "0.19.5"
$CakeVersion = "0.22.2"
$DotNetChannel = "preview"; $DotNetChannel = "preview";
$DotNetVersion = "1.0.0-preview2-003121";
$DotNetInstallerUri = "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1";
$DotNetVersion = "1.0.4";
$DotNetInstallerUri = "https://dot.net/v1/dotnet-install.ps1";
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" $NugetUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
# Temporarily skip verification and opt-in to new in-proc NuGet
$ENV:CAKE_SETTINGS_SKIPVERIFICATION='true'
$ENV:CAKE_NUGET_USEINPROCESSCLIENT='true'
# Make sure tools folder exists # Make sure tools folder exists
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
$ToolPath = Join-Path $PSScriptRoot "tools" $ToolPath = Join-Path $PSScriptRoot "tools"
@ -82,10 +86,11 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
Remove-PathVariable "$InstallPath" Remove-PathVariable "$InstallPath"
$env:PATH = "$InstallPath;$env:PATH" $env:PATH = "$InstallPath;$env:PATH"
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
} }
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
########################################################################### ###########################################################################
# INSTALL NUGET # INSTALL NUGET
########################################################################### ###########################################################################

Loading…
Cancel
Save