开发者

Add MVC3 as a Prerequisite in a WebApp installer project

开发者 https://www.devze.com 2023-02-06 03:32 出处:网络
How do I add Asp.NET MVC3 as a Prerequisite in my Visual 开发者_开发知识库Studio Installer project?Just a side note, you don\'t need MVC 3 to be installed on the host that you use. You just need to do

How do I add Asp.NET MVC3 as a Prerequisite in my Visual 开发者_开发知识库Studio Installer project?


Just a side note, you don't need MVC 3 to be installed on the host that you use. You just need to do it like we did back in the "old" days.

Check out this blog post by ScottGu on "Running an ASP.NET MVC 3 app on a web server that doesn’t have ASP.NET MVC 3 installed".


You will need to write a custom before install step where you would manually check if the required assemblies have been installed. You may also check the following article on MSDN.


Actually, I'm gonna add another answer to address the question directly.

All you have to do is set "Copy Local = True" for the following referenced assemblies in your project:

Microsoft.Web.Infrastructure
System.Web.Helpers
System.Web.Mvc
System.Web.Razor
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor

And the setup project will automatically add them as "project dependencies" and put them into the "bin" folder when the setup is run.

0

精彩评论

暂无评论...
验证码 换一张
取 消