Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
build: Add 'tool restore' in PS build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Jun 10, 2020
1 parent 1f8c17d commit fd12007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ try {

# clean up all restore and build artifacts:
Remove-Item .nuget, bin, obj -Recurse -Force -ErrorAction Ignore

## Restore nbgv
PrintAndInvoke "dotnet tool restore" | Write-Host -ForegroundColor Gray

# set env variable to use local CG.R packages
$env:LocalNuGetVersion = dotnet nbgv get-version --variable NuGetPackageVersion --project ../src
Expand Down
3 changes: 3 additions & 0 deletions templates/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ try {

# clean up all restore and build artifacts:
Remove-Item .nuget, bin, obj -Recurse -Force -ErrorAction Ignore

## Restore nbgv
PrintAndInvoke "dotnet tool restore" | Write-Host -ForegroundColor Gray

# set env variable to use local CG.R packages
$env:LocalNuGetVersion = dotnet nbgv get-version --variable NuGetPackageVersion --project ../src
Expand Down

0 comments on commit fd12007

Please sign in to comment.