DNX SDK Version ‘dnx-clr-win-x86.1.0.0-beta5′ Failed to Install & References Cannot Load

By | 5 Ocak 2016

asp.net

DNX SDK version 'dnx-clr-win-x86.1.0.0-beta5' failed to install. 
The solution will use DNX SDK version dnx-clr-win-x86.1.0.0-beta5

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.
http://www.microsoft.com/en-us/download/details.aspx?id=40855

You can see Powershell version with this $PSVersionTable command.

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:

dnvm list

 

 

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. Smile | :) You have to check versions and default values.

Bir Cevap Yazın