|
|
|
@ -5,10 +5,10 @@
@@ -5,10 +5,10 @@
|
|
|
|
|
|
|
|
|
|
set -eu |
|
|
|
|
|
|
|
|
|
DOTNET_FORMAT_VERSION=6.2.315104 |
|
|
|
|
DOTNET_FORMAT_VERSION=8.0.453106 |
|
|
|
|
DOTNET_PATH="$LOCALAPPDATA/ICSharpCode/ILSpy/dotnet-format-$DOTNET_FORMAT_VERSION" |
|
|
|
|
if [ ! -d "$DOTNET_PATH" ]; then |
|
|
|
|
dotnet tool install --tool-path "$DOTNET_PATH" dotnet-format --version "$DOTNET_FORMAT_VERSION" --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" |
|
|
|
|
dotnet tool install --tool-path "$DOTNET_PATH" dotnet-format --version "$DOTNET_FORMAT_VERSION" --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
"$DOTNET_PATH/dotnet-format.exe" --version |
|
|
|
|