-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch global.json to 7.0.100 for macOS
- `dotnet format` is broken on macOS with .NET SDK 7.0.101 (mimicking craigktreasure/Treasure.Utils#31). So, we're installing 7.0.100 in addition to the latest and patching the `global.json` file at build time on macOS to prevent rolling forward to the latest SDK version. This means we'll use the latest on Windows and Linux, but macOS will be pinned o 7.0.100 for now until it's fixed.
- Loading branch information
1 parent
2504ba5
commit 0fe9da9
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if (-not $IsMacOS) { | ||
return | ||
} | ||
|
||
Write-Host 'Disabling rollForward to pin to version in global.json.' | ||
$globalJsonPath = Join-Path $PSScriptRoot '../global.json' | ||
$globalJson = Get-Content $globalJsonPath -Raw | ConvertFrom-Json | ||
$globalJson.sdk.rollForward = 'disable' | ||
$globalJson | ConvertTo-Json | Set-Content -Path $globalJsonPath |