Skip to content

Commit 29336fa

Browse files
fengzhou-msftazure-sdk
authored andcommitted
Update Automation-Sdk-Generate.ps1
1 parent 602fa30 commit 29336fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eng/scripts/Automation-Sdk-Generate.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ foreach ($path in $autorestFilesPath) {
5555
Write-Host "Updated autorest.md files for all the changed swaggers. `n"
5656

5757
$packages = @()
58-
$dotnet = Join-Path $RepoRoot "../dotnetsdk"
58+
if (-not (Test-Path Env:AGENT_TOOLSDIRECTORY))
59+
{
60+
$Env:AGENT_TOOLSDIRECTORY = Join-Path $RepoRoot ".."
61+
}
62+
Write-Host $Env:AGENT_TOOLSDIRECTORY
63+
$dotnet = Join-Path $Env:AGENT_TOOLSDIRECTORY "dotnetsdk"
5964
Write-Host "List dotnet directory"
6065
ls $dotnet | Write-Host
6166
$env:PATH = "$dotnet`:" + $env:PATH

0 commit comments

Comments
 (0)