I have a ASP.NET site which I want to deploy to several sites, ideally from only one click.Each site obviously has its own config parameters(database connection string, etc). As far as I know I cannot do this from 'Publish' menu from Visual Studio as it only works for one site.Simplest way would be to create several configurations, and manually publish for each of them. But I do not see it practical.Here's the flow I have in my mind to put in one .bat file:
eployOnBuild=true;DeployTarget=Package /target:rebuild msdeploy -setParamFile:Site1Parameters.xml msdeploy -setParamFile:Site2Parameters.xml msdeploy -setParamFile:Site3Parameters.xml\[/code\]\[/quote\]Is this the best approach?Problem I see with this is maintaining the .bat file along the time(adding new params, etc).What other approach/options/tools are available for this?I haven't been able to find any ideas for this..
- call msbuild to build and deploy to a package, which gives me MySite.zip
- for each site, call msdeploy with a specific SetParameters.xml file for each location
