Browse Source

update build.ps1 to put downloaded dotnet in PATH

Yatao Li 5 years ago
parent
commit
c22b71aa50
1 changed files with 2 additions and 0 deletions
  1. 2 0
      build.ps1

+ 2 - 0
build.ps1

@@ -62,6 +62,8 @@ else {
     } else {
         ExecSafe { & $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath }
     }
+
+    $env:PATH="$DotNetDirectory;$env:PATH"
 }
 
 Write-Output "Microsoft (R) .NET Core SDK version $(& $env:DOTNET_EXE --version)"