2

I have a couple of similiar ASP.NET MVC projects (solutions). These projects have several identical Controllers/Views and _Layout (MasterPage). I would like to distinguish these identical elements into separate reusable project. Is it possible to create such reusable project in ASP.NET MVC? And which techniques I have to use for it.

Thank you in advance.

2 Answers 2

2

You can try MvcContrib Portable Area http://mvccontrib.codeplex.com/

http://mvccontrib.codeplex.com/wikipage?title=Creating%20a%20Portable%20Area&referringTitle=Documentation

Sign up to request clarification or add additional context in comments.

2 Comments

Can I separate my _Layout.cshtml to another project using this approach?
Haven't tested. Theoretically it could be possible. I'm sure You could set up to use no layout and you could do this from portable area, so it might be possible.
1

You can create template from your project http://haacked.com/archive/2011/06/06/creating-a-custom-asp-net-mvc-project-template.aspx

For parell develop, better approach maybe is to organise your projects like here: http://lostechies.com/jimmybogard/2009/12/09/organizing-asp-net-mvc-solutions/

2 Comments

I thinks it is bad idea to use such approach. Because I these reusable project has to be ability to be developed parallely
Look at my 2nd link, maybe it could help? Anyway you've post interested question. Im looking forward for other answers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.