0

I hope this isn't too vague.

I am wanting to create an mvc project in which I can use in other projects. I am wondering whether I can do this with Areas. Although when trying it looks at the wrong folder for the views. Does any one know a way of doing this? or Is there a different method?

neontapir
  • 4,698
  • 3
  • 37
  • 52
Mark O'Grady
  • 1,144
  • 3
  • 14
  • 22

2 Answers2

1

Check out portable areas, I think its exactly what you are looking for.

http://lostechies.com/erichexter/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib/

Jason
  • 15,915
  • 3
  • 48
  • 72
0

You can use EmbeddedResourceVirtualPathProvider which works for MVC views and also other content files (e.g. js/css/aspx).

mcintyre321
  • 12,996
  • 8
  • 66
  • 103