Skip to content

Commit

Permalink
update cake version
Browse files Browse the repository at this point in the history
  • Loading branch information
Blind-Striker committed Apr 17, 2020
1 parent 763c4d5 commit fb8be53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (!$PSScriptRoot) {
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
}

$CAKE_VERSION = "0.33.0"
$CAKE_VERSION = "0.37.0"

$TOOLS_DIR = Join-Path $PSScriptRoot "tools"
$CAKE_ROOT = Join-Path $TOOLS_DIR "/cake.coreclr/"
Expand All @@ -84,7 +84,7 @@ if (!(Test-Path $CAKE_EXE)) {
Write-Verbose -Message "Creating tools.csproj..."
try {
New-Item "$TOOLS_DIR/tools.csproj" -ItemType file
"<Project Sdk=""Microsoft.NET.Sdk""><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>netcoreapp2.2</TargetFramework></PropertyGroup></Project>" | Out-File -FilePath "$TOOLS_DIR/tools.csproj" -Append
"<Project Sdk=""Microsoft.NET.Sdk""><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>netcoreapp3.1</TargetFramework></PropertyGroup></Project>" | Out-File -FilePath "$TOOLS_DIR/tools.csproj" -Append
}
catch {
Throw "Could not download packages.config."
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Feel free to change this file to fit your needs.
##########################################################################

CAKE_VERSION=0.33.0
CAKE_VERSION=0.37.0

# Define directories.
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
Expand Down Expand Up @@ -50,7 +50,7 @@ if [ ! -f "$CAKE_EXE" ]; then
# Make sure that tools.csproj exist.
if [ ! -f "$TOOLS_DIR/tools.csproj" ]; then
echo "Creating tools.csproj..."
echo "<Project Sdk=\"Microsoft.NET.Sdk\"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>netcoreapp2.2</TargetFramework></PropertyGroup></Project>" > $TOOLS_DIR/tools.csproj
echo "<Project Sdk=\"Microsoft.NET.Sdk\"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>netcoreapp3.1</TargetFramework></PropertyGroup></Project>" > $TOOLS_DIR/tools.csproj
if [ $? -ne 0 ]; then
echo "An error occurred while creating tools.csproj."
exit 1
Expand Down

0 comments on commit fb8be53

Please sign in to comment.