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 8472419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:04:06+00:00 2026-06-10T17:04:06+00:00

For VS2010 and before I was utilizing Web Deployment Projects (WDP) to help package

  • 0

For VS2010 and before I was utilizing Web Deployment Projects (WDP) to help package my website for production deployment. I had a MSBuild script that compiled the solution in release mode. An output of that was production ready website files compiled and cleaned by the WDP.

I see for 2012 WDP have been removed, and a new tab has been created in the properties for the web application. The options are the same, but now the invocation of this is done via the Publish option (before you just compiled in release mode).

So the question is this. From an MSBuild script, how do I invoke a Publish operation? I found some old posts that…

msbuild /target:publish

would do the trick. But that doesn’t seem to work in 2012.

Also, I tried in my msbuild task…

<MSBuild Properties="Configuration=Publish;" 
         StopOnFirstFailure="true" 
         Projects="$(BuildDirectory)\MySolution.sln"></MSBuild>

…but msbuild just reported “unknown configuration”.

How can I have msbuild run the publish option from the command line?

  • 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-06-10T17:04:08+00:00Added an answer on June 10, 2026 at 5:04 pm

    I wasn’t able to get the publish to run, but looking at the output from Visual Studio I think I have found an alternate solution. Turns out the obj\Release\AspnetCompileMerge folder has a deployable and clean version of the project. It contains byte identical files to the final output folder.

    I did have to change my msbuild script to include the DeployOnBuild option…

    <MSBuild Properties="Configuration=Release;DeployOnBuild=True;" 
             StopOnFirstFailure="true" 
             Projects="$(BuildDirectory)\BigWave.ALL.sln"></MSBuild>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had a problem where VS2010 will not build my projects before debugging.
I found that this answer was asked and answered before VS2010 was actually released.
We've recently upgraded from VS2008 -> VS2010 (and hence upgrading from Web Deployment Project
I have read several posts about the configuration manager in VS2010 (or before) but
I'm using VS2010 every day, and haven't noticed it before. There is too many
In VS2010 they added to all projects a virtual directory called External Dependencies: alt
The issue is that VS2010 Code Analysis is returning two CA2000 warnings for a
Hello suddenly VS2010 has started formatting my if statements in a way that I
In VS2010 I had a shortcut set up Alt + Up/Down to move lines
I experienced this problem in VS2010 before, and solved it looking at this SO

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.