Edit and Continue in ASP.NET MVC 3 application

前端 未结 2 863
佛祖请我去吃肉
佛祖请我去吃肉 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:55

    Further to this, you'll find that Edit and Continue will not work on certain methods -- those with dynamically-typed variables and those with lambda expressions. You'll probably have a lot of lambda if you're using LINQ to (anything) to retrieve data from repositories, and of course ViewBag is a common dynamic in MVC applications.

    So, Edit and Continue and MVC mix poorly. Which is all right, really, because it gets you into the habit of test-driven development -- write good tests, code to pass the tests, and only then build and run.

提交回复
热议问题