开发者

How to Customize Build and Publish Process

I have a Website with these properties

  • .NET 3.5
  • Asp.NET 2.0
  • Use Local Resources to control TEXT of elements
  • SVN // for source Control
  • Publish with Visual Studio

Then I have some sub Directories which categorized website into different parts.

Now I have another customer that need some customization in Main Website. for example:

  • Changes belongs to 1 or 2 Sub Directories out of 15
  • Change some Text
  • Remove some pages, because he doesn't need them
  • Some new Pages
  • Some new fields in some pages
  • Some minor changes

With all these background, What's the best practice to publish this website?

These are my ideas

  1. Create New subdirectories with new name and copy all pages in this one. then apply all changes in this. >>>> this would be the last option
  2. Create seperate SubDirectories and copy the necessary one inot main Solution Just for publish and keep the main subdirectory in website. >>>> I'm not sure that this would be a good idea because we publish once a week
  3. Create a new Website for directories which should be changed and then publish them sepe开发者_开发知识库rately, then merge the result with Main website >>> actually I don't know How to do this and also I'm not sure that it will work or not

Could you please give me some solution. Just consider that I have to publish once a week (because of the SLA) so that I need minimum changes.

Thank you in advance.


I would suggest you look at Web Deploy.

It would take an investment to setup, but you could create a single package of your site with parameters. Then when publishing you would replace the necessary parameters and use skip and replace rules to skip or replace customer specific files. The best part is that this could would be automated making your deployment process easy since you'll be doing it often.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜