开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜