Skip to content

Commit cb7caed

Browse files
fengzhou-msftazure-sdk
authored andcommitted
Update Automation-Sdk-Generate.ps1
1 parent 6adcc97 commit cb7caed

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
@@ -50,7 +50,12 @@ foreach ($path in $autorestFilesPath) {
5050
Write-Host "Updated autorest.md files for all the changed swaggers. `n"
5151

5252
$packages = @()
53-
$dotnet = Join-Path $RepoRoot "../dotnetsdk"
53+
if (-not (Test-Path Env:AGENT_TOOLSDIRECTORY))
54+
{
55+
$Env:AGENT_TOOLSDIRECTORY = Join-Path $RepoRoot ".."
56+
}
57+
Write-Host $Env:AGENT_TOOLSDIRECTORY
58+
$dotnet = Join-Path $Env:AGENT_TOOLSDIRECTORY "dotnetsdk"
5459
Write-Host "List dotnet directory"
5560
ls $dotnet | Write-Host
5661
$env:PATH = "$dotnet`:" + $env:PATH

0 commit comments

Comments
 (0)