如何将.NET 2.0 Web应用程序投入生产,使用哪些工具,以及为什么使用这些工具和方法而不是其他选项?

[英]How to get .NET 2.0 web app into production, using which tools, and why use those tools and methods over other options?


With VisualStudio Publish, CruiseControl.NET, MSBuild, aspnet_compiler.exe, and Web Deployment Projects out there, how would one know which tool to use to ultimately get a .NET 2.0 web application into a testing/production environment?

使用VisualStudio Publish,CruiseControl.NET,MSBuild,aspnet_compiler.exe和Web部署项目,如何知道使用哪种工具最终将.NET 2.0 Web应用程序带入测试/生产环境?

With .NET 1.1, I simply copied all files over to the server's directory and set it to a configured virtual directory in IIS. Unless I am really missing something, it seemed to work just fine. Now I'm reading about how important it is to put some good thought into 2.0 deployment and the the more I read, the more I get confused.

使用.NET 1.1,我只需将所有文件复制到服务器的目录,并将其设置为IIS中已配置的虚拟目录。除非我真的错过了什么,否则它似乎工作得很好。现在我正在读到将一些好的想法放到2.0部署中的重要性,我读的越多,我就越困惑。

Please breakdown how to choose which tool to use, and why you would use that tool. If more than one tool is needed, please identify how they relate to this process.

请详细说明如何选择要使用的工具以及使用该工具的原因。如果需要多个工具,请确定它们与此过程的关系。

3 个解决方案

#1


CC.NET is for Continuous Integration it can build your setup projects as artifacts, but that is not it's main purpose. MSBuild is the Microsoft build system -- again, not related to deployment. aspnet_complier compiles your web sties, which may make deployment easier, but is not in itself deployment.

CC.NET用于持续集成,它可以将您的安装项目构建为工件,但这不是它的主要目的。 MSBuild是Microsoft构建系统 - 再次与部署无关。 aspnet_complier编译您的Web sties,这可以使部署更容易,但本身不是部署。

Web deployment projects is what you should be looking at. Here's a decent little post that goes over some of the options for deployment and a reference from MSDN. There are also commercial products.

Web部署项目是您应该关注的。这是一篇不错的文章,介绍了一些部署选项以及MSDN的参考资料。还有商业产品。

#2


In most cases, you can right-click on project in VS.NET and choose "Publish". This will give you a few options for deploying via FTP or file path.

在大多数情况下,您可以在VS.NET中右键单击项目并选择“发布”。这将为您提供一些通过FTP或文件路径进行部署的选项。

Publish Web http://img26.imageshack.us/img26/1261/screencfl.png

发布Web http://img26.imageshack.us/img26/1261/screencfl.png

What we do it publish to an SVN repository, then run SVN UPDATE on the machines it needs to go to...

我们做什么发布到SVN存储库,然后在需要去的机器上运行SVN UPDATE ...

#3


I use TeamCity, which implements

我使用TeamCity,它实现了

  1. Rebuilding solution with devenv.exe in command line
  2. 在命令行中使用devenv.exe重建解决方案

  3. Changing settings in web.config (connection strings and debug mode) with sed.exe
  4. 使用sed.exe更改web.config(连接字符串和调试模式)中的设置

  5. Precompiling WebSite with the aspnet_compiler in command line.
  6. 在命令行中使用aspnet_compiler预编译WebSite。

  7. Copying solution to FTP (with internal tool)
  8. 将解决方案复制到FTP(使用内部工具)

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2009/06/12/72006a4c44fa252bdff44ba39059f06.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告