I am following example from MVC book. I was asked to create three projects in one solution ( C# Library, MVC 2 and Test). I did it by right clicking on solution name and choose 'add > new project'. Project names are:
MVCSample.Domain
MVCSample.WebUI
MVCSample.Test
It looks fine but I can not add Domain namespace into class from WebUI project. When I am writing using MVCSample. statement in controler ( class form WebUI) InteliSense prompt only .WebUI as matching ending. What did I wrong?
I am using VS 2010 pro.
It sounds like you haven't added a reference to the Domain project from the WebUI project.
Right-click on the WebUI project in Solution Explorer, pick Add Reference and then choose the Domain project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With