Click here to Skip to main content
15,357,358 members
Articles / Programming Languages / C#
Tip/Trick
Posted 13 Oct 2015

Tagged as

Stats

16K views
2 bookmarked

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

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
13 Oct 2015CPOL1 min read
Solving the DNX install and loading reference problems
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.

You can see Powershell version with this $PSVersionTable command.

Image 1

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.

Image 2

To check DNX installed and default version with this command:

BAT
dnvm list

Image 3

beta5 clr version installed but it is not default. Need to install beta5 coreclr version.

To install beta5 coreclr verison, use this command:

PowerShell
dnvm install -r coreclr 1.0.0-beta5

Image 4

After install beta5 coreclr version, check again versions:

Image 5

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.

Image 6

Points of Interest

DNX problem can be solved step by step. :) You have to check versions and default values.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ahmet AYDIN
Software Developer
Turkey Turkey
i am Ahmet AYDIN from turkey.

Comments and Discussions

 
GeneralMy vote of 5 Pin
Farhad Reza13-Oct-15 4:45
MemberFarhad Reza13-Oct-15 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.