问题描述
据说VS 2013增加了支持编辑和继续64位(见http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx).
Supposedly vs 2013 added support for edit and continue 64 bit (see http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx).
不过,我不能让它的工作。
However I can't get it working.
在去我的.NET 4.5.1 asp.net MVC Web应用程序项目的属性,并选中启用编辑并继续复选框,我现在可以编辑code,而在一个断点。
After going to the properties of my .net 4.5.1 asp.net mvc web application project, and checking the "Enable Edit and Continue" checkbox, I can now edit the code while on a breakpoint.
问题是储蓄,并试图继续加强低谷后,我得到一个错误对话框说:
The problem is that after saving and trying to keep on stepping trough, I get an error dialog saying:
编辑发了言,不能进行编译。执行无法继续 直到编译错误是固定的。
在错误列表窗口中,这2个错误总是显示:
In the error list window, those 2 errors always show:
类型System.IEquatable`1是一个组件,其定义 没有引用。您必须添加一个引用程序集System.Runtime, 版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
类型System.ValueType是一个组件,它是没有定义 引用。您必须添加一个引用程序集System.Runtime, 版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a'。
The type 'System.ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
这真是奇怪的错误消息,对不对?然而我点微不足道的变化是,我总是得到同样的错误。
It's really weird error message right? However insignificant my change is, I always get the same error.
请注意:我运行Windows 7 / VS 2013的最终和我的项目设置为使用IIS防爆preSS在项目属性
note: I run windows 7 / vs 2013 ultimate and my project is set up to use IIS Express in the project properties.
推荐答案
这是一个已知的问题引用便携库和使用编辑和放大器时;继续。我们正在寻找解决这一问题在Visual Studio的未来版本。
This is a known issue when referencing portable libraries and using Edit & Continue. We are looking to fix this in a future version of Visual Studio.
一个解决方法现在:
- 在这个问题的项目,右键点击解决方案资源管理器并选择卸载
- 在卸载的项目上单击右键,选择修改
- 在第一个
&LT的身体;的PropertyGroup>
元素中,添加以下内容:< _ResolveReferenceDependencies>真< / _ ResolveReferenceDependencies>
- 刷新该项目保存更改
- Right-click on the project with the issue in Solution Explorer and choose Unload
- Right-click on the unloaded project and choose Edit
- Within the body of the first
<PropertyGroup>
element, add the following:<_ResolveReferenceDependencies>true</_ResolveReferenceDependencies>
- Reload the project saving changes
这应该可以解决的构建问题。
This should fix the build issue.
注意:根据项目的不同,这个的可能的有性能损失,不仅在编辑和放大器;继续在VS的用法,但只是一般的用法。
Note: Depending on the project, this might have a performance hit, not only during Edit & Continue usage, but just general usage within VS.
这篇关于的Visual Studio 2013 +净4.5.1 +编辑并继续64位:不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!