Visual Studio 2013 + .Net 4.5.1 + 编辑并继续 64 位:不工作 [英] Visual studio 2013 + .Net 4.5.1 + Edit and continue 64 bit: not working

查看:27
本文介绍了Visual Studio 2013 + .Net 4.5.1 + 编辑并继续 64 位:不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据说与 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).

但是我无法让它工作.

转到我的 .net 4.5.1 asp.net mvc Web 应用程序项目的属性并选中启用编辑并继续"复选框后,我现在可以在断点处编辑代码.

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:

进行了无法编译的编辑.执行无法继续直到编译错误被修复

Edits were made which cannot be compiled. Execution cannot continue until compile errors are fixed

在错误列表窗口中,这两个错误总是显示:

In the error list window, those 2 errors always show:

类型System.IEquatable`1"是在一个程序集中定义的,它是没有参考.您必须添加对程序集System.Runtime"的引用,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a'.

The type 'System.IEquatable`1' 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'.

类型 'System.ValueType' 是在一个未定义的程序集中定义的参考.您必须添加对程序集System.Runtime"的引用,版本=4.0.0.0,文化=中性,PublicKeyToken=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 Ultimate,我的项目设置为在项目属性中使用 IIS Express.

note: I run windows 7 / vs 2013 ultimate and my project is set up to use IIS Express in the project properties.

推荐答案

这是引用便携式库和使用 Edit & 时的已知问题继续.我们希望在未来版本的 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.

暂时的解决方法:

  1. 解决方案资源管理器中右键单击存在问题的项目,然后选择卸载
  2. 右键单击卸载的项目并选择编辑
  3. 在第一个 元素的正文中,添加以下内容:<_ResolveReferenceDependencies>true</_ResolveReferenceDependencies>
  4. 重新加载项目保存更改
  1. Right-click on the project with the issue in Solution Explorer and choose Unload
  2. Right-click on the unloaded project and choose Edit
  3. Within the body of the first <PropertyGroup> element, add the following: <_ResolveReferenceDependencies>true</_ResolveReferenceDependencies>
  4. 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 + .Net 4.5.1 + 编辑并继续 64 位:不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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