In many of the projects that I have and I have, there is an ambiguous link error that appears if I use an object that is different from another asp.net5 project. It's funny that it still compiles and works, but there is no intellisense, and my code is covered in red lines.
An example of this: I have a Tests project pointing to my MVC project. When I try to create a new instance of XController, it will show an error that it does not know which XController is using DNX 4.5.1 or DNX 5.0. I know what it is, but he will not let me choose, although I feel that I should not. Again, this works, just upsets.
The only way to get this to work is if I select only one structure for my MVC project. I do not like to do this because I want to know if dnxcore50 supports what I write in an MVC application. I tried using only one framework in the unit test project, but that did not work.
I want to be clear that I understand that asp.net 5 stuff is in beta and there are a lot of bugs. I am wondering if this is a mistake or if I am just doing something wrong.
Update 1: It seems that the problem only occurs if I have a new Asp.Net 5 Class library referencing the Asp.Net 5 Mvc project. Working libraries with the library and mvc to the library also work.
source
share