Reputation: 253
Is there any way to build deployment package for a Web Application using Visual Studio 2010 CommandLine ?
Upvotes: 24
Views: 7215
Reputation: 1246
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
Upvotes: 26