Skip to content
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
Closed

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

victorhurdugaci opened this issue Mar 10, 2015 · 2 comments
Labels
Milestone

Comments

@victorhurdugaci
Copy link
Contributor

@victorhurdugaci 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
Copy link
Contributor

@anurse anurse commented Apr 17, 2015

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

@BrennanConroy
Copy link
Member

@BrennanConroy 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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.