How do I deploy an ASP.NET MVC3 Application?

前端 未结 5 895
说谎
说谎 2021-02-15 23:52

I have created a web application using ASP.NET MVC3 in Visual studio (no SQL Server). Now I want to deploy it and am looking for suggestions for the easiest possible way.

5条回答
  •  情歌与酒
    2021-02-16 00:28

    In addition to all these answers about copying the mvc dll's manually. Visual Studio 2010 (with SP1) has the abiltity to do this for you.

    1. Rightclick your mvc web project
    2. Click on Add Deployable dependencies
    3. Choose one or more of the three options (asp.net mvc, asp.net webpages with razor syntax, sql server compact)
    4. Publish your application.

    Visual studio will now auto deploy the correct references in your bin folder.

提交回复
热议问题