Is there a better way to deploy web applications using Visual Studio 2010?

I am using Visual Studio 2010 and IIS 7.0 .Currently when I want to deploy an website to my web server I follow these steps -

1.Right-click on website and say publish..to get the entire site copied to a local folder.

2.Next using filezilla just ftp the copied files to the web server.

The problem is I have to deploy entire website all the time since I can't keep a track of the changes. Although I do find my way easier and without problems. I dont want to a whole lot of configuration and deployment packages unless it is really worth it and also relatively easy to do. Is there a better way I should do the deployment ? Any suggestions are welcome !


You could use the Web Deployment tool. It needs to be installed on the webserver too and can even take care of publishing a sql server database.

http://www.iis.net/download/WebDeploy

Do NOT use the Web Platform installer to install this package.


You can just right click on website and Publish Web Site; the Publish Website Wizard opens. You can click the ... button to browse on the Target Location textbox and choose FTP over in the left hand side, then put in your FTP credentials.

You can tick 'Allow this precompiled site to be updateable' so if you need to make minor changes (such as scripts, css, or html) but I don't know how reliable that is.

Good luck!


Scott Gu just published an article about the Deploy Features in VS today: http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx

Personally I use Dispatch for ASP.NET. Works well for me. It only uploads the files that have changed and can check for files that are missing locally or on the server. http://dispatchasp.net/

链接地址: http://www.djcxy.com/p/2302.html

上一篇: 如何在java中检索有用的系统信息?

下一篇: 使用Visual Studio 2010部署Web应用程序是否有更好的方法?