How to change default dnx version is Visual Studio Code?

后端 未结 3 2059
甜味超标
甜味超标 2021-01-04 06:51

I am not sure if it is possible but I want to change dnx version when dnx . run from Visual Studio Code.

Even if my current dnx version is 1.0.0-beta5-11682 core

3条回答
  •  独厮守ぢ
    2021-01-04 07:02

    dnvm use -r -a -p

    examples:
    : 1.0.0-rc1-update2 etc.
    : mono, clr, coreclr (optional)
    : x64, x86 (optional)
    -p: makes the results persistent (optional)

    Selecting Active:

    You have to provide the Runtime version as well, if there are multiple choices for the same name. For example type the following:

    dnvm use 1.0.0-beta4 -r mono
    

    If you would have to provide Architecture as well, the following command would apply:

    dnvm use 1.0.0-beta4 -r mono -arch 
    

    where can be "x64" for example, without the quotes.

    Setting Default:

    dnvm alias default 1.0.0-beta5-11682 -r coreclr -arch x64
    

    Please note that, there were a bug (about May, 2015), in which referring to a CoreClr runtime by alias was not working. I don't know if it's fixed yet, but I guess so. Source: Issue 175 about the bug.

提交回复
热议问题