Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Use Cake local .NET Core tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Weyer committed May 31, 2020
1 parent b047cf2 commit 85b7f33
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.37.0",
"commands": [
"dotnet-cake"
]
}
}
}
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
image: Visual Studio 2017
image: Visual Studio 2019
branches:
only:
- master
# We'll also build whenever there is a new commit on any branch starting with `features/`
- /features\/.+/
build_script:
- ps: |
dotnet tool restore
dotnet cake build.cake --bootstrap
dotnet cake build.cake --pack
assembly_info:
Expand Down Expand Up @@ -78,5 +79,4 @@ install:
# `SimpleRouting` is targeting `netstandard2.0`, so we can safely install the latest `SDK`
# The `SDK` is required to restore, build, publish... a `.NET Core` application
# https://www.microsoft.com/net/download/windows
- ps: .\build\dotnet-install.ps1 -Channel Current
- ps: dotnet tool install --global Cake.Tool --version 0.31.0
- ps: .\build\dotnet-install.ps1 -InstallDir 'C:\Program Files\dotnet\'
2 changes: 1 addition & 1 deletion bootstrap.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dotnet tool install Cake.Tool --global --version 0.31.0
dotnet tool restore
dotnet cake build.cake --bootstrap
dotnet cake build.cake
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dotnet tool install Cake.Tool --global --version 0.31.0
dotnet tool restore
dotnet cake build.cake --bootstrap
dotnet cake build.cake
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#module nuget:?package=Cake.DotNetTool.Module&version=0.1.0
#module nuget:?package=Cake.DotNetTool.Module&version=0.4.0

#tool dotnet:?package=GitVersion.Tool&version=4.0.1-beta1-58
#tool dotnet:?package=GitVersion.Tool&version=5.3.5

var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
Expand Down

0 comments on commit 85b7f33

Please sign in to comment.