When creating a new MVC 6 project using asp.net 5, there are reference to both DNX 451 and DNXCore50.
Why are multiple DNX Versions referenced and are they both necessary?
Asked
Active
Viewed 355 times
6

Matt DeKrey
- 11,582
- 5
- 54
- 69

czuroski
- 4,316
- 9
- 50
- 86
-
1There's a number of other resources (including on SO) where you can learn about the differences, such as http://stackoverflow.com/q/26908049/195653. @rdans covers the rest of the (oiriginal) question pretty well! – Matt DeKrey Jun 05 '15 at 13:27
1 Answers
6
DNSCore50 uses .net core and DNX451 uses the .net framework. Referencing them both means you can build for both targets.
If you don't want to build for both you can remove one of them.
Reasons why you might want to keep both might be that you are making a library that you want to be available for external projects of both types.
Reasons why you might not want to keep both might be that you are using an external library that is only available for one of them (there's a good chance that most of your favourite libraries are framework only), or perhaps you need to use framework code that has not yet been implemented in .net core.

rdans
- 2,179
- 22
- 32