Reputation: 4758
I moving an app structure folder to an Area
in the area
/Admin
it creates
/Admin/Controllers
/Admin/Models
/Admin/Views
I traditionally reference my models by adding a reference in the web.config like this
<add namespace="Project.Models" />
However it doesnt seem to know about the Models folder in the areas. When I attempt to resolve from a controller
Project.Areas.Admin.Models doesnt seem to exist but it does.
However
Project.Areas.Admin.Controllers exists and expands when typing.
Upvotes: 0
Views: 633
Reputation: 12683
One thing to check would be that you have placed classes in the correct folders in your Area (or any folders). Now folders aren't much other than logical conatiners. If you have placed classes in these folders and they arent appearing through intellisense ensure the namespace
matches your folder structure.
This is common when moving code between solutions \ projects.
Upvotes: 1