irfandar
irfandar

Reputation: 1810

How to publish to multiple web sites in visual studio in a batch

How can I deploy multiple websites in a visual studio in a batch on single click; either using GUI or command line

Update: I think some people have misunderstood my question. Let me try again. I want to publish my website to multiple subdomains(nearly 50) one by one(by changing profile and clicking publish). It takes a lot of time. What I want to ask is that is there any way I could automate and speed up this process.

Thanks in advance

Upvotes: 2

Views: 4143

Answers (2)

Travis Acton
Travis Acton

Reputation: 4430

Assuming your using TFS then you can setup specialized builds that can utilize deployment scripts to push to many sites. This article scratches the surface but will point you in the right direction. https://msdn.microsoft.com/en-us/library/hh191495.aspx

Upvotes: 0

Artyom
Artyom

Reputation: 1095

You can select multiple projects (websites) inside "Solution explorer" window and select "Publish selection" inside "Build" menu item.

solution selection

build menu item

Upvotes: 4

Related Questions