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
You can either set a version in the global.json
file (like so https://github.com/OmniSharp/omnisharp-roslyn/blob/master/global.json#L4) or use the combination of dnvm alias
and dnvm use
. OmniSharp (the C# brain used by VSCode) will first check the global.json
file and then go with the default-alias. All the details can be found here: https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp/AspNet5/AspNet5Paths.cs#L45