Add Start-PSBootstrap to add installed dotnet to path

This commit is contained in:
Aditya Patwardhan
2025-10-06 11:59:48 -07:00
parent ba1256cd31
commit 92beb64c14
2 changed files with 6 additions and 0 deletions
@@ -43,6 +43,9 @@ jobs:
- pwsh: |
$repoRoot = "$(Build.SourcesDirectory)/PowerShell"
Import-Module "$repoRoot/build.psm1" -Force -Verbose
Start-PSBootstrap -Scenario Dotnet
$toolPath = New-Item -ItemType Directory "$(System.DefaultWorkingDirectory)/toolPath" | Select-Object -ExpandProperty FullName
Write-Verbose -Verbose "dotnet tool list -g"
@@ -51,6 +51,9 @@ jobs:
- pwsh: |
$repoRoot = "$(Build.SourcesDirectory)"
Import-Module "$repoRoot/build.psm1" -Force -Verbose
Start-PSBootstrap -Scenario Dotnet
$env:DOTNET_NOLOGO=1
$localLocation = "$(Pipeline.Workspace)/PSPackagesOfficial/drop_nupkg_build_nupkg"