Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

namespace problem, multiple projects in single solution

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.

like image 930
zgorawski Avatar asked Sep 05 '26 05:09

zgorawski


1 Answers

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.

like image 199
Jon Skeet Avatar answered Sep 07 '26 21:09

Jon Skeet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!