DNX SDK version 'dnx-clr-win-x22.214.171.124-beta5' failed to install. The solution will use DNX SDK version dnx-clr-win-x126.96.36.199-
You receive this error when you create a new ASP.NET 5 project template. Loading project Visual Studio cannot load DNX version beta5.
Install Windows Powershell 3.0 (or higher) and try to create the project again.
You can see Powershell version with this
After installed Powershell, the ASP.NET 5 project can open.
DNX 4.5.1 & DNX Core 5 References Cannot Load
ASP.NET 5 project template needs the dnx-beta version so it cannot load references. You have to check which dnx verison loaded and which one is default.
To check DNX installed and default version with this command:
beta5 clr version installed but it is not default. Need to install beta5 coreclr version.
To install beta5 coreclr verison, use this command:
dnvm install -r coreclr 1.0.0-beta5
After install beta5 coreclr version, check again versions:
Now beta5 coreclr and clr versions are installed, so we can set our project “DNX SDK Version” because when you create a new project SDK version, set default DNX version. Our default DNX version is beta7. We have to change it to fix reference problem.
You can change it from solution properties.
Points of Interest
DNX problem can be solved step by step. You have to check versions and default values.