Bug - VSO Build Prebuild.ps1 CoreClr #422
Description
Using the latest dnvm seems to break VSO builds.
(To reprocude this issue, follow the information in this post: https://msdn.microsoft.com/en-us/Library/vs/alm/Build/azure/deploy-aspnet5 )
My Prebuild.ps1 has this block:
echo "Installing clr"
& $env:USERPROFILE.dnx\bin\dnvm install $dnxVersion -r clr -Persistent
echo "Installing coreclr"
& $env:USERPROFILE.dnx\bin\dnvm install $dnxVersion -r coreclr
(The rest of it has not been changed)
Installing just clr works great and the build finish successfully.
But then I try to also install coreclr I get this error message:
Installing clr
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-beta7 from https://www.nuget.org/api/v2
Installing to C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7
Adding C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PATH
Adding C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to user PATH
Installing coreclr
Join-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\buildguest.dnx\bin\dnvm.ps1:207 char:59
- $RuntimeDirs = $RuntimeHomes | ForEach-Object { Join-Path $_ "runtimes" }
- ~~
- CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Join
PathCommand
Determining latest version
Downloading dnx-coreclr-win-x64.1.0.0-beta7 from https://www.nuget.org/api/v2
Installing to C:\Users\buildguest.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta7
Cannot find dnx-coreclr-win-x64.1.0.0-beta7, do you need to run 'dnvm install 1.0.0-beta7'?
At C:\Users\buildguest.dnx\bin\dnvm.ps1:1549 char:9
- throw "Cannot find $runtimeFullName, do you need to run '$CommandName in ...
-
- CategoryInfo : OperationStopped: (Cannot find dnx...l 1.0.0-beta7'?:String) [], RuntimeException
- FullyQualifiedErrorId : Cannot find dnx-coreclr-win-x64.1.0.0-beta7, do you need to run 'dnvm install 1.0.0-beta
7'?