Asp.net

如何部署 ASP.NET MVC3 應用程序?

  • July 19, 2012

我在 Visual Studio(無 SQL Server)中使用 ASP.NET MVC3 創建了一個 Web 應用程序。現在我想部署它,並正在尋找最簡單的方法的建議。

截至目前,我所做的是(規則 1-10)http://msdn.microsoft.com/en-us/library/dd410407 (v=vs.90).aspx

1- 項目文件夾中的 bin 文件夾

2- Content 文件夾

3- Scripts 文件夾

4- Views 文件夾

5- Global.asax

6- Web.config

7- 從 C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\ 複製v1.0\Assemblies 目錄

你應該在部署網站之前將這些文件複製到“bin”目錄中

Microsoft.CSharp.dll - reference  
Microsoft.Web.Infrastructure.dll and .xml - copy  
System.Web.Helpers.dll and .xml - reference  
System.Web.Razor.dll and .xml - copy  
System.Web.Routing.dll - reference  
System.Web.WebPages.Deployment.dll and .xml - copy  
System.Web.WebPages.dll - reference  
System.Web.WebPages.Razor.dll and .xml - copy    

引用自:https://stackoverflow.com/questions/8708046