ASP.NET MVC 3: Which dll's need to be deployed?

前端 未结 2 2037
栀梦
栀梦 2021-02-15 00:32

Which files need to be marked Copy Local to \"True\" when deploying a ASP.NET MVC 3 application on a server that does not have ASP.NET MVC 3 installed?

相关标签:
2条回答
  • 2021-02-15 00:45

    From http://www.hanselman.com/blog/BINDeployingASPNETMVC3WithRazorToAWindowsServerWithoutMVCInstalled.aspx

    System.Web.Mvc

    Microsoft.Web.Infrastructure

    System.Web.Razor

    System.Web.WebPages

    System.Web.WebPages.Razor

    System.Web.Helpers

    System.Web.WebPages.Deployment

    0 讨论(0)
  • 2021-02-15 00:50

    Maybe it was because I was deploying with a beta version but for some reason I needed to deploy nuGet.dll as well as Omar's list.

    Also See: Scott Gu's blog: http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx

    0 讨论(0)
提交回复
热议问题