在ASP.NET MVC 3应用程序中编辑并继续 [英] Edit and Continue in ASP.NET MVC 3 application

查看:163
本文介绍了在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?

btw,我的操作系统平台是x86。

btw, my OS platform is x86.

编辑:当我点击f5,然后尝试编辑代码时,我收到以下错误:代码运行时不允许进行更改,或者如果选项中断所有进程当一个过程中断被禁用。该选项可以在工具,选项,调试中启用。

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.

即使启用该选项,代码运行时无法编辑代码。

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. 将属性中的WebApp项目输出路径设置为bin窗口

  3. 设置我的WebApp项目以使用Visual Studio Development Server
    (项目属性> Web选项卡)

  4. 遵循2个简单的说明 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 3 Framework, Third Edition

现在我可以设置一个断点,然后点击F5,然后当断点命中 - 我可以改变我的代码(例如在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应用程序中编辑并继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆