How to edit and continue in Visual Studio 2008 and ASP.Net MVC?

后端 未结 5 1463
予麋鹿
予麋鹿 2021-02-04 06:01

I\'m trying to get edit-and-continue working with Visual Studio 2008 with an ASP.Net MVC project. I\'m running 64-bit, so that adds to the problem.

In Configuration Mana

相关标签:
5条回答
  • 2021-02-04 06:40

    You can't 'edit and continue' when the program is running. You must break to edit and continue, and if you have many threads you must break all. If when breaking, some threads continue to run, it not a problem with 'edit and continue' but a problem with the break options.

    Note: You don't need to stop the program, but you must break, and then you can continue.

    0 讨论(0)
  • 2021-02-04 06:44

    Do you have Enable Optimizations checked? (Advanced Compile Options), I don't think you can have that checked...

    Also: http://blogs.msdn.com/webdevelopertips/archive/2008/11/26/tip-29-did-you-know-how-to-enable-edit-and-continue-feature-for-web-application-projects.aspx

    0 讨论(0)
  • 2021-02-04 06:46

    Are you using IIS or the built in Visual Studio development server for debugging? I've had trouble before getting edit and continue running under IIS, and ended up just using the built in server.

    0 讨论(0)
  • 2021-02-04 06:56

    For VS2010 try this

    alt text

    0 讨论(0)
  • 2021-02-04 06:59

    I open a separate browser window (so it doesn't close when I stop debugging) then I stop debugging, make changes and build them and just carry on using the other browser window to view the changes. (Yes - this works even with changes in your class files, controllers etc).

    If you just want to change the views, CSS or scripts you just need to shift and refresh to make sure your browser gets the updated files rather than using the cache.

    If this sounds odd to anyone - try it! It works!

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