简体   繁体   中英

How do I publish multiple web site projects in the same solution to one folder?

I want to keep multiple web site projects in one solution and I want to publish them all together in one folder. What are the steps to do that? Can I publish the whole solution? I am guessing the solution is only a container that is holding different web site projects. I want to publish all these small web site projects into one place and I want to use a single page for the authentication for the whole application. How can I publish these multiple web sites at one location? Do I have to manage web.config?

It sounds like what you really need is a single web project (and I'd recommend web application projects rather than web "site" projects... but that's another topic).

If they all share common authentication and root folder, why separate them?

您可以在 NAnt 构建脚本上使用 MsBuild 来做到这一点。

I would seriously consider merging the projects into 1, especially if they will be using the same authentication system. Once merged, you would be able to use inherited MasterPages to easily give each section it's own "look-and-feel", while still maintaining the site's style.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM