This repository has been archived by the owner. It is now read-only.

dnvm use alias doesn't work when alias points to coreclr #175

Closed
victorhurdugaci opened this Issue Mar 10, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@victorhurdugaci
Contributor

victorhurdugaci commented Mar 10, 2015

Even though the alias points to coreclr, when I run kvm use <alias> it tries to use the clr runtime

D:\aspnet\dnx>dnvm upgrade -r coreclr -amd64
Downloading dnx-coreclr-win-x64.1.0.0-beta4-11237 from https://www.myget.org/F/aspnetvnext/api/v2
Installing to C:\Users\victorhu\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta4-11237
Adding C:\Users\victorhu\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta4-11237\bin to process PATH
............

D:\aspnet\dnx>dnvm list
Active Version           Runtime Architecture Location                        Alias
------ -------           ------- ------------ --------                        -----
       1.0.0-beta4-11237 clr     x86          C:\Users\victorhu\.dnx\runtimes
  *    1.0.0-beta4-11237 coreclr x64          C:\Users\victorhu\.dnx\runtimes default

D:\aspnet\dnx>dnvm alias test 1.0.0-beta4-11237 -r coreclr -arch x64
Setting alias 'test' to 'dnx-coreclr-win-x64.1.0.0-beta4-11237'

D:\aspnet\dnx>dnvm list

Active Version           Runtime Architecture Location                        Alias
------ -------           ------- ------------ --------                        -----
       1.0.0-beta4-11237 clr     x86          C:\Users\victorhu\.dnx\runtimes
  *    1.0.0-beta4-11237 coreclr x64          C:\Users\victorhu\.dnx\runtimes default, test

D:\aspnet\dnx>dnvm use test
Cannot find dnx-clr-win-x64.1.0.0-beta4-11237, do you need to run 'dnvm install test'?
At C:\Users\victorhu\.dnx\bin\dnvm.ps1:1069 char:9
+         throw "Cannot find $runtimeFullName, do you need to run '$CommandName in ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Cannot find dnx... install test'?:String) [], RuntimeException
    + FullyQualifiedErrorId : Cannot find dnx-clr-win-x64.1.0.0-beta4-11237, do you need to run 'dnvm install test'?

@anurse

This comment has been minimized.

Show comment
Hide comment
@anurse

anurse Apr 17, 2015

Member

As described in #214, this is because aliases seem to be ignoring the runtime type.

Member

anurse commented Apr 17, 2015

As described in #214, this is because aliases seem to be ignoring the runtime type.

@BrennanConroy

This comment has been minimized.

Show comment
Hide comment
@BrennanConroy

BrennanConroy Aug 17, 2015

Contributor

Fixed in ad29a7b

Contributor

BrennanConroy commented Aug 17, 2015

Fixed in ad29a7b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.