要在干净的服务器上部署我的应用程序需要几个步骤:启动 MSSQL 服务、安装 .NET4、部署代码、安装数据库架构、将 SSL 证书添加到 IIS7...
此后,我执行了一项更无聊的任务:压缩我的应用程序文件,将它们传输到服务器,将它们加载到 Web 应用程序文件夹等。
随着我的产品销售给企业客户,部署是半频繁进行的。此后就是无聊的构建和部署任务。
是否有推荐的 .NET 工具可以帮助自动执行上述任务?顺便说一句,我将 VS2010 与 IIS7 和 .NET4 一起使用。
最佳答案
Web Deploy (Web Deployment Tool) simplifies the migration, management and deployment of IIS Web servers, Web applications and Web sites. Administrators can use command-line scripting with Web Deploy to synchronize IIS 6.0 and IIS 7.0 servers or to migrate an IIS 6.0 server to IIS 7.0. Web Deploy Tool also enables administrators and delegated users to use IIS Manager to deploy ASP.NET and PHP applications to an IIS 7.0 server.
Web Deploy enables you to package configuration and content of your installed Web applications, including databases, and use the packages for storage or redeployment. These packages can be deployed using IIS Manager without requiring administrative privileges. The tool integrates with Visual Studio 2010 to help developers streamline the deployment of Web applications to the Web server. The tool also integrates with the Web Platform Installer to allow you to simply and easily install community web applications. You can submit your own application to the Web Application Gallery
Features
Seamless integration with IIS 7.0 Manager and Visual Studio 2010 interface for creating packages and deploying them onto a machine, both locally and remotely. Seamless integration with the Web Platform Installer to install community web applications simply and easily. Web application packaging: Ability to package a Web application or an entire site, including the associated databases. Ability to package ACLs, COM, GAC and registry settings. Supports both live servers and zipped packages as a source or destination. Web application deployment: Administrative privileges are not required in order to deploy Web applications. Ability to add powerful parameters to change text in files when they are deployed (such as prompting to replace a connection string when deploying from QA to staging environments). Integration with the IIS 7.0 Web Management Service (WMSVC) for remote deployment by non-administrators. Server administrators have granular control over the operations that can be performed and can delegate tasks to non-administrators. Web server migration and synchronization: Ability to synchronize or migrate the entire Web server, a Web site or application. Synchronizes only the data that has changed. Ability to detect missing dependencies during synchronization. Automatically gathers content, IIS configuration, SSL certificates and ASP.NET configuration when you sync a Web site. In addition to the IIS Manager and Visual Studio 10, tasks can be performed using the command-line or public APIs.
关于c# - .NET 构建和部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4281296/