Skip to content

Commit

Permalink
Update Automation-Sdk-Generate.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored and azure-sdk committed Mar 10, 2022
1 parent 04e92b6 commit 5c9d854
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eng/scripts/Automation-Sdk-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ foreach ($path in $autorestFilesPath) {
Write-Host "Updated autorest.md files for all the changed swaggers. `n"

$packages = @()
$dotnet = Join-Path $RepoRoot "../dotnetsdk"
if (-not (Test-Path Env:AGENT_TOOLSDIRECTORY))
{
$Env:AGENT_TOOLSDIRECTORY = Join-Path $RepoRoot ".."
}
Write-Host $Env:AGENT_TOOLSDIRECTORY
$dotnet = Join-Path $Env:AGENT_TOOLSDIRECTORY "dotnetsdk"
Write-Host "List dotnet directory"
ls $dotnet | Write-Host
$env:PATH = "$dotnet`:" + $env:PATH
Expand Down

0 comments on commit 5c9d854

Please sign in to comment.