Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Web Deployment Package From Command Line

Tags:

Is there any way to build deployment package for a Web Application using Visual Studio 2010 CommandLine ?

like image 521
Ange Avatar asked Jun 25 '10 09:06

Ange


People also ask

How do I Deploy a web deployment package?

Create a web deployment package using the MSBuild command line, Team Build, or Visual Studio 2010. Copy the web package to the destination web server. Use the Import Application Package Wizard in IIS Manager to install the web package and provide values for variables like connection strings and service endpoints.

Which command line tool is used to Deploy Web applications?

This topic describes how you can publish web deployment packages to a remote server by using the Internet Information Services (IIS) Web Deployment Tool (Web Deploy) 2.0. There are two main ways in which you can deploy a web package to a remote server: You can use the MSDeploy.exe command-line utility directly.

What is WebPublishMethod?

"WebPublishMethod" ensures we are just creating a deployment package. There are other options like publishing to the file system or elsewhere using MSDeploy. "PackageAsSingleFile" will zip up the output into a single file. "PackageLocation" is where the zip will be saved.


1 Answers

I think this has what you are looking for

MSBuild "MyProjectName.csproj" /T:Package /P:Configuration=Staging;PackageLocation="D:\Vishal\Package.zip" 

I got this from this site: http://vishaljoshi.blogspot.com/2009/02/web-packaging-creating-web-packages.html

like image 85
hivie7510 Avatar answered Sep 22 '22 03:09

hivie7510