diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index cbd1980934f5..141eb757a838 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,16 @@ "isRoot": true, "tools": { "dotnet-serve": { - "version": "1.7.125", + "version": "1.7.139", "commands": [ "dotnet-serve" ] + }, + "dotnet-format": { + "version": "5.0.210401", + "commands": [ + "dotnet-format" + ] } } } diff --git a/build.ps1 b/build.ps1 index b57ce7e8b3f2..9716479ed8ae 100644 --- a/build.ps1 +++ b/build.ps1 @@ -356,24 +356,10 @@ if (-not $foundJdk -and $RunBuild -and ($All -or $BuildJava) -and -not $NoBuildJ Write-Error "Could not find the JDK. Either run $PSScriptRoot\eng\scripts\InstallJdk.ps1 to install for this repo, or install the JDK globally on your machine (see $PSScriptRoot\docs\BuildFromSource.md for details)." } -# Check dotnet-format is installed or not -$dotnetFormat = Get-Command dotnet-format -ErrorAction Ignore -CommandType Application - -if($dotnetFormat) -{ - Write-Host -f Magenta "dotnet format tool is already installed." -} -else -{ - Write-Host -f Magenta "Installing dotnet-format tool.." - & dotnet tool install -g dotnet-format -} - # We need to change default git hooks directory as .git folder is not tracked. And by default hooks are stored in .git/hooks folder. # So we are setting git hooks default directory to .githooks, so that we can track and version the git hooks. & git config core.hooksPath .githooks - # Initialize global variables need to be set before the import of Arcade is imported $restore = $RunRestore