开发者

MVC3 Reuse area in another project

开发者 https://www.devze.com 2023-03-08 00:37 出处:网络
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.

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

精彩评论

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