Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

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

@victorhurdugaci

Description

@victorhurdugaci

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'?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions