How do I publish multiple web site projects in the

2019-08-13 13:08发布

问题:

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?

回答1:

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?



回答2:

You could use an MsBuild on NAnt build script to do that.



回答3:

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.