本文介绍了编辑并在ASP.NET MVC 3应用程序继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以编辑和使用Visual Studio 2010中的ASP.NET MVC 3继续应用?如果是这样,我该怎么办呢?

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

顺便说一句,我的操作系统平台是86。

btw, my OS platform is x86.

编辑:当我按F5,然后尝试编辑code我收到以下错误:code运行时不允许更改,或者如果选项'打破所有进程,当一个进程游'是禁用。该选项可以在工具,选项,调试启用。

when I hit f5 and then try to edit the code I receive the following error: Changes are not allowed while code is running or if the option 'Break all processes when one process breaks' is disabled. The option can be enabled in Tools, Options, Debugging.

尽管启用该选项,我不能编辑在code运行我的code。

Even though the option is enabled I cannot edit my code when code is running.

推荐答案

很多搞乱,谷歌搜索,和之后(基本上)猜测工作,(我实际运行的x64环境),我发现下面启用MVC 3编辑并继续对我太好了!

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. 设置所有的项目,在x86的配置管理器

  2. 在属性窗口中我的Web应用程序项目输出路径设置为本

  3. 设置我的Web应用程序项目使用Visual Studio开发服务器
    (项目属性>网络选项卡)

  4. 继2简单从<一个指令href=\"http://books.google.co.uk/books?id=gzfFQrs_qQAC&pg=PA317&lpg=PA317&dq=edit%20and%20continue%20mvc3&source=bl&ots=EXA9emp7_G&sig=jax26gmuZt0Wffbj8-n3mldKvF4&hl=en&ei=87s1TqO7GMnh0QH1kNGgDA&sa=X&oi=book_result&ct=result&resnum=5&ved=0CEgQ6AEwBA#v=onepage&q&f=false\">Pro ASP.NET MVC 3
    框架第三版

  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 3Framework, Third Edition

现在我可以设置一个断点,然后按F5键,那么当断点命中 - 我可以改变我的code(例如由MVC Web应用程序中引用控制器或类库项目),并继续调试( F5再次)和变化接走了,一切似乎是理所应当!

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 !

这篇关于编辑并在ASP.NET MVC 3应用程序继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 22:30