Browse Source

Fix for "Unable to locate dotnet CLI. Ensure that it is on the PATH." https://github.com/microsoft/azure-pipelines-tasks/issues/19162 (then see https://github.com/dotnet/format/pull/2000)

pull/3338/head
Christoph Wille 6 months ago
parent
commit
5ba75bfd51
  1. 2
      .github/workflows/build-ilspy.yml
  2. 2
      BuildTools/pre-commit

2
.github/workflows/build-ilspy.yml

@ -35,7 +35,7 @@ jobs: @@ -35,7 +35,7 @@ jobs:
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

2
BuildTools/pre-commit

@ -5,7 +5,7 @@ @@ -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..."

Loading…
Cancel
Save