Skip to content

Commit 27e3922

Browse files
committed
updated demos
1 parent 45ea192 commit 27e3922

File tree

9 files changed

+42
-9
lines changed

9 files changed

+42
-9
lines changed

demo/frosting/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.gradle/
22
tools/
3+
example/build/

demo/frosting/build.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
$ErrorActionPreference = 'Stop'
2+
3+
Set-Location -LiteralPath $PSScriptRoot
4+
5+
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
6+
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
7+
$env:DOTNET_NOLOGO = '1'
8+
9+
# ensure a most-recent debug-build, so we can reference that.
10+
dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
11+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
12+
113
dotnet run --project build/Build.csproj -- $args
2-
exit $LASTEXITCODE;
14+
exit $LASTEXITCODE;

demo/frosting/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
cd "$(dirname "${BASH_SOURCE[0]}")"
5+
6+
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
7+
export DOTNET_CLI_TELEMETRY_OPTOUT=1
8+
export DOTNET_NOLOGO=1
9+
10+
# ensure a most-recent debug-build, so we can reference that.
11+
dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
12+
113
dotnet run --project ./build/Build.csproj -- "$@"

demo/frosting/build/Build.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="Cake.Frosting" Version="4.0.0" />
8+
<PackageReference Include="Cake.Frosting" Version="5.0.0" />
99
</ItemGroup>
1010
<ItemGroup>
1111
<Reference Include="Cake.Gradle">
12-
<HintPath>$(ProjectDir)../../../src/Cake.Gradle/bin/Release/net8.0/Cake.Gradle.dll</HintPath>
12+
<HintPath>$(ProjectDir)../../../src/Cake.Gradle/bin/Debug/net9.0/Cake.Gradle.dll</HintPath>
1313
</Reference>
1414
</ItemGroup>
1515
</Project>

demo/script/.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "4.0.0",
6+
"version": "5.0.0",
77
"commands": [
88
"dotnet-cake"
99
]
1010
}
1111
}
12-
}
12+
}

demo/script/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.gradle/
22
tools/
3+
example/build/

demo/script/build.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// build artifacts first by executing ./build.ps1 in root
2-
#r "../../src/Cake.Gradle/bin/Release/net8.0/Cake.Gradle.dll"
2+
#r "../../src/Cake.Gradle/bin/Debug/net9.0/Cake.Gradle.dll"
33

44
// requires Java Runtime Environment
55

@@ -25,4 +25,4 @@ Task("Gradle-Example")
2525
Gradle.FromPath("./example").WithTask("hello").WithArguments("--offline --build-file build.gradle").Run();
2626
});
2727

28-
RunTarget("Gradle-Example");
28+
RunTarget("Gradle-Example");

demo/script/build.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
66
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
77
$env:DOTNET_NOLOGO = '1'
88

9+
# ensure a most-recent debug-build, so we can reference that.
10+
dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
11+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
12+
913
dotnet tool restore
1014
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
1115

demo/script/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/usr/bin/env bash
2-
set -euox pipefail
2+
set -euo pipefail
33

44
cd "$(dirname "${BASH_SOURCE[0]}")"
55

66
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
77
export DOTNET_CLI_TELEMETRY_OPTOUT=1
88
export DOTNET_NOLOGO=1
99

10+
# ensure a most-recent debug-build, so we can reference that.
11+
dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
12+
1013
dotnet tool restore
1114

1215
dotnet cake "$@"

0 commit comments

Comments
 (0)