Is there any way to build deployment package for a Web Application using Visual Studio 2010 CommandLine ?
1 Answer
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
2 Comments
Luke Puplett
If you get the OutputPath empty error, add a /P:Platform=AnyCPU argument (no spaces in AnyCPU).
Luke Puplett
Also, the PackageLocation will be cleaned first, so watch for deletion of important files. I spat my coffee across the room when I saw it cleaning my main code folder!