Im testing out the new MVC2 framework, and there I also have tried out the new areas
functionality.
Im following this example:
Walkthrough: Creating an ASP.NET MVC Areas Application Using Multiple Projects
Everything builds and runs okay locally, but when I try to commit to my repository and the use the build automation engine Team City I get a build error.
error MSB4062: The "Microsoft.Web.Mvc.Build.CreateAreaManifest" task could not be loaded from the assembly Microsoft.Web.Mvc.Build, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'Microsoft.Web.Mvc.Build, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, and that the assembly and all its dependencies are available.
I have built other MVC2 applications on my Team City server and it worked out fine, but when I added the whole "areas" thing it just could not get it right.
Any ideas?