简体   繁体   English

VS2015项目不会在调试模式下运行

[英]VS2015 Project wont run in debug mode

Not a duplicate of: VS2015 Project no longer runs in debug mode 不能重复: VS2015项目不再以调试模式运行

My issue is the same though, except I have already tried the solutions from that question. 我的问题是一样的,除了我已经尝试过该问题的解决方案。 Things I have tried/checked: 我尝试过/检查过的事情:

  • Optimize Code is not checked 未选中优化代码
  • Config Manager is set to Build and Debug Config Manager设置为Build and Debug
  • Define DEBUG and TRACE constant is checked 定义DEBUG并检查TRACE常量
  • Cleaning / Rebuilding 清洁/重建
  • Changing the above settings, saving, changing back. 更改以上设置,保存,更改回去。
  • Deleting the DLL it complains about being in debug mode and recompiling. 删除该DLL会抱怨它处于调试模式并重新编译。

I have no idea what else to check. 我不知道还要检查什么。 Any ideas? 有任何想法吗?

在此处输入图片说明

Attach/run the project regardless of the warning. 不管警告如何,都附加/运行项目。 Open the "Modules" window (Debug -> Windows -> Modules) and find out where the DLL/EXE is being loaded from. 打开“模块”窗口(“调试”->“ Windows”->“模块”),并找出从中加载DLL / EXE的位置。

One. 一。 Try removing every "project reference" and re-adding them. 尝试删除每个“项目参考”并重新添加它们。

Two..when really up against it, create a new solution..new projects (same names are ok)....and move the non sln/csproj files over (.cs files mainly) and readd them to your NEW csproj/sln files. 二..当真的反对它时,创建一个新的解决方案..新项目(可以使用相同的名称)....并将非sln / csproj文件移到(主要是.cs文件)并将其读取到新的csproj / sln文件。 Aka, "recreate it"... Twice I've had to do this for no known reason. aka,“重新创建它” ...两次,我不得不在未知的情况下执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM