Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6123511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:01:33+00:00 2026-05-23T16:01:33+00:00

I have a project which I can deploy to 4 sites from within VS2010,

  • 0

I have a project which I can deploy to 4 sites from within VS2010, 2 using file based deployment and 2 using web deploy.

Its boring to sit through waiting for the deploys one after the other so I’d like to automate this. On the command line.

I know about msdeploy, but I can’t see how to either tell it the same options which are in .Publish.xml or get it to use the settings which are saved there.

What I’d like is a batch file which looks something like

msbuild Project.sln /p:Configuration=Config1
magicDeployingProgram Project.sln /p:PublishXMLConfigurationName="Server1DeploySettings"
msbuild Project.sln /p:Configuration=Config2
magicDeployingProgram Project.sln /p:PublishXMLConfigurationName="Server2DeploySettings"
msbuild Project.sln /p:Configuration=Config3
magicDeployingProgram Project.sln /p:PublishXMLConfigurationName="Server3DeploySettings"
msbuild Project.sln /p:Configuration=Config4
magicDeployingProgram Project.sln /p:PublishXMLConfigurationName="Server4DeploySettings"

Or equivalent. I don’t mind re-specifying the settings to msdeploy, but when I tried this I couldn’t find the option to specify which IIS site to deploy to (the equivalent of the “Site/application” box on the publish settings dialog in vs2010).

Finally, I don’t mind if it’s web deploy only, my file-based deployment is a product of laziness, and I can set up a web deploy agent on the appropriate box, I just haven’t had to yet.

I’ve been searching for information about this, but it’s pretty hard to find, I think.

Any pointers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:01:33+00:00Added an answer on May 23, 2026 at 4:01 pm

    Ok, I think I’ve found this. msbuild can do it.

    C:\path\to\project>msbuild 
         /p:configuration="Config1" 
         /p:DeployOnBuild=True 
         /p:DeployTarget=MsDeployPublish 
         /p:CreatePackageOnPublish=True 
         /p:DeployIISAppPath="Default Web Site or whatever" 
         /p:MsDeployServiceUrl="http://machine/MSDEPLOYAGENTSERVICE"
         /p:AllowUntrustedCertificate=true 
         /p:UserName=DOMAIN\user
         /p:Password=thePassword
         /p:MsDeployPublishMethod=RemoteAgent 
         /p:SkipExtraFilesOnServer=true
    

    x4 in a batch file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Web project using Asp.Net MVC, which I'll have to deploy
I have a project which I can build and deploy correctly using Ant I
I have a Django project. Given a url, how can I know which view
I have a WCF visual studio project, which contains many SVC files. Can I
I have a project which is source controlled using Subversion and VisualSVN. Since the
I have a project which builds correctly from the command line. On one of
i have a MVC project which runs perfectly local. When I deploy to the
I have a Eclipse Dynamic Web Project which host a simple servlet and runs
I have a Maven project which is a web project and is packaged as
I have been given an existing project which is consisting of pom.xml file in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.