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

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

问题描述

据说VS 2013增加了支持编辑和继续64位(见<一href="http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx">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:

编辑发了言,不能进行编译。执行无法继续   直到编译错误是固定的。

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

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

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

类型System.IEquatable`1是一个组件,其定义   没有引用。您必须添加一个引用程序集System.Runtime,   版本= 4.0.0.0,文化=中性公钥= 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,文化=中性公钥= 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.

一个解决方法现在:

  1. 在这个问题的项目,右键点击解决方案资源管理器并选择卸载
  2. 在卸载的项目上单击右键,选择修改
  3. 在第一个&LT的身体;的PropertyGroup&GT; 元素中,添加以下内容:&LT; _ResolveReferenceDependencies&GT;真&LT; / _ ResolveReferenceDependencies&GT;
  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 +净4.5.1 +编辑并继续64位:不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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