3

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.

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, perfect solution... and written in a book too. I don't know how I missed it ;(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.