Skip to content

Commit

Permalink
Use normal mechanism to install dotnet-format (dotnet#29909)
Browse files Browse the repository at this point in the history
- dotnet/AspNetCore-ManualTests#407
- update the `dotnet-serve` version while here
  • Loading branch information
dougbu authored Feb 7, 2021
1 parent 73212a6 commit 069cb5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
14 changes: 0 additions & 14 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 069cb5f

Please sign in to comment.