Edit and Continue in ASP.NET MVC 3 application

前端 未结 2 856
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 06:02

Is it possible to Edit and Continue in ASP.NET MVC 3 app using Visual Studio 2010? If so, how can I do that?

btw, my OS platform is x86.

Edit: when I hit f

2条回答
  •  庸人自扰
    2020-12-09 06:44

    After a lot of messing about, googling, and (essentially) guess work, (I am actually running x64 environment) I found that the following enabled MVC 3 edit and continue for me Great !

    1. Setting all the projects to x86 in configuration manager
    2. Setting my WebApp project output path to "bin" in the properties window
    3. Setting my WebApp project to use Visual Studio Development Server (project properties > Web tab)
    4. following the 2 simple instructions from Pro ASP.NET MVC 3 Framework, Third Edition

    Now I can set a break point, then hit F5, then when the break point hits - I can change my code (e.g. in controllers or class library projects referenced by the MVC web app), and continue debugging (F5 again) and the changes are picked up, and everything seems to be as it should !

提交回复
热议问题