Skip to content

Commit

Permalink
Merge pull request #3338 from icsharpcode/fix/unable
Browse files Browse the repository at this point in the history
Fix for "Unable to locate dotnet CLI. Ensure that it is on the PATH."
  • Loading branch information
christophwille authored Dec 9, 2024
2 parents 9986104 + bff2098 commit ffa8834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-ilspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ jobs:
with:
dotnet-version: '8.0.x'
dotnet-quality: 'ga'

env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
DOTNET_ROOT: ${{ runner.temp }}/.dotnet

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Install dotnet-format
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
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

- name: Get Version
id: version
Expand Down
2 changes: 1 addition & 1 deletion BuildTools/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -eu

DOTNET_FORMAT_VERSION=8.0.453106
DOTNET_FORMAT_VERSION=8.3.546805
DOTNET_PATH="$LOCALAPPDATA/ICSharpCode/ILSpy/dotnet-format-$DOTNET_FORMAT_VERSION"
if [ ! -d "$DOTNET_PATH" ]; then
echo "Downloading dotnet-format $DOTNET_FORMAT_VERSION..."
Expand Down

0 comments on commit ffa8834

Please sign in to comment.