My website is built on an ASP.NET, .NET 3.5 framework. For various reasons, I'm not in a position to move my project to vs开发者_开发问答2010. As a result, I cannot make use of the "Build deployment package" targets that vs2010 supports.
Does anyone know of a way to build a web deployment package (the zip archive that can be imported into IIS 7 via web deploy) with a vs2008 installation (prefer to use msbuild here and I don't require vs2008 integration).
FWIW, I'm trying to avoid publishing it to a temporary server for the purpose of exporting the website. However, if that's the only option, then so be it.
You can use msdeploy from the command line and trigger it from your build process: http://blog.torresdal.net/2010/08/16/NoClickWebDeploymentPart2WebDeployAkaMsdeploy.aspx
I've started putting together a series of tutorials about Web Deploy here - hope they help: http://bilalaslam.com/
精彩评论