Okay this is driving me crazy. I got one almost finished project (which works perfectly) and I wanted to make another one in the same way. The thing is there is a solution with two layers DataAccessLayer and BusinessLogicLayer. Both of these layers have a Model library with all models in the project. I need to convert the model from the first layer to a model of a second layer in the manager library. This works in the finished project I received but I can not manage to make it on mine. The thing is I can't make the necessary references to work like they do on the finished project. The structure is:
BusinessLogicLayer
--Managers
----Users
--Models
----User
DataAccessLayer
--Models
----User
In the Managers project I have a reference added to DataAccessLayer.Models. And inside the Users class I got:
using Library.BusinessLogicLayer.Models;
Now in my project this line is red underlined:
Error CS0234 The type or namespace name 'Models' does not exist in the namespace 'Library.BusinessLogicLayer' (are you missing an assembly reference?)
I am not even sure how and why this works on that original project. But I can't figure it out so it's working right on my project and the structure is the exact same. Anyone have an idea about this?
EDIT: Dunno why I didn't upload this earlier. Here is the structure. https://i.stack.imgur.com/w4JSS.jpg
EDIT2: Since it is not quite understandable I uploaded the whole project on github so you can take a closer look at it. https://github.com/Morsusy2k/Library
And here is the problem: https://i.stack.imgur.com/J4ng6.jpg