We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6adcc97 commit cb7caedCopy full SHA for cb7caed
eng/scripts/Automation-Sdk-Generate.ps1
@@ -50,7 +50,12 @@ foreach ($path in $autorestFilesPath) {
50
Write-Host "Updated autorest.md files for all the changed swaggers. `n"
51
52
$packages = @()
53
-$dotnet = Join-Path $RepoRoot "../dotnetsdk"
+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"
59
Write-Host "List dotnet directory"
60
ls $dotnet | Write-Host
61
$env:PATH = "$dotnet`:" + $env:PATH
0 commit comments