Hi
I have been following this tutorial:
and have an application (a bit more complex) like this set up. All the areas are working fine, however I have noticed that if I change the project name of the Accounts project to say Areas.Accounts, that it wont find any of my views within the accounts project due to the Area name not being the same as the project name e.g. the accounts routes.cs file still has this:
public override string AreaName
{
get { return "Accounts"; }
}
Does anyone know why I would have to change it to this:
public override string AreaName
{
// Needs to match the project name?
get { return "Areas.Accounts"; }
}
for my views in the accounts project to work?
I would really like the AreaName to still be Accounts, but for ASP.net MVC to look in the "Views\Areas\Areas.Accounts\" folder when its all munged into one project, rather than trying to find it within "View\Areas\Accounts\"
Thanks Mark