加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-4 – 如何永久教Visual Studio检测我的调试信息?

发布时间:2020-12-16 04:14:57 所属栏目:asp.Net 来源:网络整理
导读:使用Visual Studio 2012,也许您已经看过这条消息: 它说: The following module was built either with optimizations enabled or without debug information: C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesroot6dce49fa6c454
使用Visual Studio 2012,也许您已经看过这条消息:

它说:

The following module was built either with optimizations enabled or without debug information:

C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesroot6dce49fa6c454827assemblydl395d618739871ffdd_4288ce01NoeDownloadbereichWeb.dll

To debug this module,change its project build configuration to Debug
mode. To suppress this message,disable the ‘Warn if no user code on
launch’ debugger option.

在过去,我可能每周一次开始调试我的ASP.NET应用程序并通过简单地重新编译我的解决方案来解决它.

最近我切换到IIS Express现在每隔一次/第三次我想在我做一些更改之后调试我的代码.

我通过以下一个或所有步骤解决它:

>重建我的应用程序(帮助大部分时间)
>关闭IIS Express并重建我的应用程序
>重新启动Windows 8并重建我的应用程序

我找到了similar questions here和on Google,仍然无法永久解决这个问题.

我的问题:

你能想象偶尔导致这种行为的原因吗?

更新1

该错误似乎与ASP.NET error messages相似/后跟(德语):

Das Erstellen von “System.Net.Http.Extensions” oder das Erstellen einer Schattenkopie ist nicht m?glich,wenn diese Datei bereits vorhanden ist.

哪个rougly翻译成英文:

Cannot create/shadow copy “System.Net.Http.Extensions” when that file already exists.

(所引用的文件名“System.Net.Http.Extensions”由ASP.NET随机更改)

更新2

我已切换回Visual Studio Development Server并立即摆脱上述错误:

不知道这是否只是在我的系统上,或者是什么原因.

解决方法

转到工具>选项>调试>一般>启用我的代码>如果启动时没有用户代码,则发出警告

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读