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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:39:14+00:00 2026-05-15T13:39:14+00:00

I am using visual studio 2010. I have a website project that I would

  • 0

I am using visual studio 2010. I have a website project that I would like to build a website deployment package every time I build a the project. Basically I am looking for some example of a post build MSBuild command that will basically do the same thing as the “Build Deployment Package” option from the right click menu of the website.

  • 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-15T13:39:14+00:00Added an answer on May 15, 2026 at 1:39 pm

    I assume you are using Web Application Projects, because Web Site projects do not have the “Build Deployment Package”.

    I would recommend not performing a package on every build, because it will slow down your development drastically. With that being said, you can do it here is how.

    If you really wanted to do this your best bet is not to use post-build event, but to edit the project file and extend the build process. To do this open the .csproj file for your web and then towards the bottom (after the Import elements) place the following

    <PropertyGroup>
      <BuildDependsOn>
        $(BuildDependsOn);
        Package
      </BuildDependsOn>
    </PropertyGroup>
    

    What this does is extend the build process to call the Package target. This is the same target that is called when you invoke the “Build Deployment Package” target in Visual Studio.

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

Sidebar

Related Questions

I have created SQL Server 2008 Database project using visual studio 2010. after build
I am using Visual Studio 2010 for an MVC website project. I have an
I've created a MVC website using Visual Studio 2010 and would like to deploy
I have a asp.net website with c# code behind and using visual studio 2010.
For reference, I'm using Visual Studio 2010. I have a custom build step defined
I have a website which was created using Microsoft Visual Studio 2010. I want
I have a ASP.net MVC2 website that was working great when using Visual Studio
I have a Visual Studio 2010 project with a Master Page that works fine.
I'm using Visual Studio 2010 with the new website publish dialog. I have a
I have deployed a website using Visual Studio 2010 on IIS6. I used one

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.