如何將.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(使用內部工具)

关注微信公众号

注意!

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



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