-
Notifications
You must be signed in to change notification settings - Fork 61
Bug - VSO Build Prebuild.ps1 CoreClr #422
Comments
One quick thing to help diagnose this, if you switch the order so that it does coreclr first then what's the result? I don't have all the code handy right now but I am wondering if persisting the change of desktop clr before installing coreclr is breaking something on the subsequent run. It is most likely a bug, but I want to narrow it down a bit. |
I just tried to switch the order and got the same error message. Using only coreclr worked fine (& $env:USERPROFILE.dnx\bin\dnvm install $dnxVersion -r coreclr -Persist) The error seems to occure when installing more then one runtime. I also tried to run it without -Persist but it didn't work ither. I also noted that running "dnvm install 1.0.0.-beta7 -r coreclr" on my local machine and directly afterwards running "dnvm install 1.0.0.-beta7 -r clr" didn't work ither. I get the following error: "'dnvm' is not recognized as an internal or external command,operable program or batch file." |
Dup created 2 Days ago? |
Adding the following two lines to Prebuild.ps1, just above "# install DNX", solved the issue. $env:DNX_HOME="C:\Users\buildguest.dnx" |
This fixed that problem. I hadn't noticed that the path is actually
|
But I get now another problem when building in Azure in the execution environment
As I understood it's due to an old web tooling. How do I modify that in Azure? |
Self-assigning |
- #422 - previously used `$env:DNX_HOME` or `$env:DNX_GLOBAL_HOME` when undefined - also ignores `$env:DNX_HOME` values such as ";C:\ProgramData\Microsoft DNX" nits: - use constants a bit more consistently - remove trailing whitespace
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
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
7'?
The text was updated successfully, but these errors were encountered: