MVC3 Reuse area in another project
I开发者_JAVA技巧 created an area for the signup/signin process of our website and wonder how I in the most effective way can reuse the that area in another project keeping the code at the same place. The code consists of Controllers and views.
Can I somehow externalize the whole thing to another project so that I can include a dll to both websites?
You can add the item as a link: Adding an Existing Item as a Link
you can create a project only with the area in it. and package the project with nuget. and install the nuget package to each of your websites.
you have to install the nuget package manually though if your area get updated. or you have to write your pre-build script to reinstall it automatically.
精彩评论