MVC Multiple Areas of MVC 3

I am trying to get MVC Several areas working with MVC 3.0 RC

I downloaded MVC Futures 3 and tried to add CreateAreaManifest to the csprog file, but I get the following error:

The "task" Microsoft.Web.Mvc.Build.CreateAreaManifest "cannot be downloaded from the Microsoft.Web.Mvc.Build assembly, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = null. The file or assembly" Microsoft failed to load. Web.Mvc.Build, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = null "or one of its dependencies. The system cannot find the specified file. Make sure that the declaration is correct, that the assembly and all its dependencies are accessible and that the task contains an open class that implements Microsoft.Build.Framework.ITask. "

Of all that Google tells me. I need to install it in the GAC, which I can not do, because it is not very typed.

So, I think I'm asking for help getting a few areas working with MVC 3.0, and a link to a demo project would be perfect.

+3
source share
1 answer

Chris

Are you specifically trying to use the Regions from individual projects?

If so, see Stack Overflow: Multiproject Areas in ASP.NET MVC 3 .

Alternatively, MVC 3 RC has the ability to create several areas built into it (I'm not sure if this also applies to MVC 3 Beta / Preview).

Right-clicking on the name of the project, you should see this menu: Add area

. Visual Studio 2010 MVC 3 RC.

, , , , ...

, !

+2

Source: https://habr.com/ru/post/1779417/


All Articles