Skip to content

Commit f77d3f1

Browse files
committed
[Nuke] try to fix build.
1 parent 6d03b39 commit f77d3f1

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Build/Nuke/global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "5.0.100",
4+
"rollForward": "latestMinor"
5+
}
6+
}

build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
1616
$BuildProjectFile = "$PSScriptRoot\Build\Nuke\NukeBuild.csproj"
1717
$TempDirectory = "$PSScriptRoot\\.tmp"
1818

19-
$DotNetGlobalFile = "$PSScriptRoot\\global.json"
19+
$DotNetGlobalFile = "PSScriptRoot\Build\Nuke\global.json"
2020
$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1"
2121
$DotNetChannel = "Current"
2222

@@ -32,6 +32,10 @@ function ExecSafe([scriptblock] $cmd) {
3232
if ($LASTEXITCODE) { exit $LASTEXITCODE }
3333
}
3434

35+
36+
# Print environment variables
37+
Get-Item -Path Env:* | Sort-Object -Property Name | ForEach-Object {"{0}={1}" -f $_.Name,$_.Value}
38+
3539
# If global.json exists, load expected version
3640
if (Test-Path $DotNetGlobalFile) {
3741
$DotNetGlobal = $(Get-Content $DotNetGlobalFile | Out-String | ConvertFrom-Json)

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
1212
BUILD_PROJECT_FILE="$SCRIPT_DIR/Build/Nuke/NukeBuild.csproj"
1313
TEMP_DIRECTORY="$SCRIPT_DIR//.tmp"
1414

15-
DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json"
15+
DOTNET_GLOBAL_FILE="$SCRIPT_DIR/Build/Nuke/global.json"
1616
DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh"
1717
DOTNET_CHANNEL="Current"
1818

0 commit comments

Comments
 (0)