File tree Expand file tree Collapse file tree 9 files changed +42
-9
lines changed Expand file tree Collapse file tree 9 files changed +42
-9
lines changed Original file line number Diff line number Diff line change 1
1
.gradle /
2
2
tools /
3
+ example /build /
Original file line number Diff line number Diff line change
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
+
1
13
dotnet run -- project build/ Build.csproj -- $args
2
- exit $LASTEXITCODE ;
14
+ exit $LASTEXITCODE ;
Original file line number Diff line number Diff line change
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
+
1
13
dotnet run --project ./build/Build.csproj -- " $@ "
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >Exe</OutputType >
4
- <TargetFramework >net8 .0</TargetFramework >
4
+ <TargetFramework >net9 .0</TargetFramework >
5
5
<RunWorkingDirectory >$(MSBuildProjectDirectory)</RunWorkingDirectory >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
- <PackageReference Include =" Cake.Frosting" Version =" 4 .0.0" />
8
+ <PackageReference Include =" Cake.Frosting" Version =" 5 .0.0" />
9
9
</ItemGroup >
10
10
<ItemGroup >
11
11
<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 >
13
13
</Reference >
14
14
</ItemGroup >
15
15
</Project >
Original file line number Diff line number Diff line change 3
3
"isRoot" : true ,
4
4
"tools" : {
5
5
"cake.tool" : {
6
- "version" : " 4 .0.0" ,
6
+ "version" : " 5 .0.0" ,
7
7
"commands" : [
8
8
" dotnet-cake"
9
9
]
10
10
}
11
11
}
12
- }
12
+ }
Original file line number Diff line number Diff line change 1
1
.gradle /
2
2
tools /
3
+ example /build /
Original file line number Diff line number Diff line change 1
1
// 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"
3
3
4
4
// requires Java Runtime Environment
5
5
@@ -25,4 +25,4 @@ Task("Gradle-Example")
25
25
Gradle . FromPath ( "./example" ) . WithTask ( "hello" ) . WithArguments ( "--offline --build-file build.gradle" ) . Run ( ) ;
26
26
} ) ;
27
27
28
- RunTarget ( "Gradle-Example" ) ;
28
+ RunTarget ( "Gradle-Example" ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
6
6
$env: DOTNET_CLI_TELEMETRY_OPTOUT = ' 1'
7
7
$env: DOTNET_NOLOGO = ' 1'
8
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
+
9
13
dotnet tool restore
10
14
if ($LASTEXITCODE -ne 0 ) { exit $LASTEXITCODE }
11
15
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -euox pipefail
2
+ set -euo pipefail
3
3
4
4
cd " $( dirname " ${BASH_SOURCE[0]} " ) "
5
5
6
6
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
7
7
export DOTNET_CLI_TELEMETRY_OPTOUT=1
8
8
export DOTNET_NOLOGO=1
9
9
10
+ # ensure a most-recent debug-build, so we can reference that.
11
+ dotnet build ../../src/Cake.Gradle/Cake.Gradle.csproj
12
+
10
13
dotnet tool restore
11
14
12
15
dotnet cake " $@ "
You can’t perform that action at this time.
0 commit comments