Skip to content

Commit ffa8834

Browse files
Merge pull request icsharpcode#3338 from icsharpcode/fix/unable
Fix for "Unable to locate dotnet CLI. Ensure that it is on the PATH."
2 parents 9986104 + bff2098 commit ffa8834

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build-ilspy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ jobs:
3030
with:
3131
dotnet-version: '8.0.x'
3232
dotnet-quality: 'ga'
33-
33+
env:
34+
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
35+
DOTNET_ROOT: ${{ runner.temp }}/.dotnet
36+
3437
- name: Add msbuild to PATH
3538
uses: microsoft/setup-msbuild@v2
3639

3740
- name: Install dotnet-format
38-
run: dotnet tool install -g dotnet-format --version "8.0.453106" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
41+
run: dotnet tool install -g dotnet-format --version "8.3.546805" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
3942

4043
- name: Get Version
4144
id: version

BuildTools/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set -eu
77

8-
DOTNET_FORMAT_VERSION=8.0.453106
8+
DOTNET_FORMAT_VERSION=8.3.546805
99
DOTNET_PATH="$LOCALAPPDATA/ICSharpCode/ILSpy/dotnet-format-$DOTNET_FORMAT_VERSION"
1010
if [ ! -d "$DOTNET_PATH" ]; then
1111
echo "Downloading dotnet-format $DOTNET_FORMAT_VERSION..."

0 commit comments

Comments
 (0)