我一直收到此错误消息,说存在.cs文件的副本,因此不会遇到断点。
I keep getting this error saying there's a copy of the .cs file hence the break point will not get hit.
我尝试清洁解决方案,重建,删除obj和bin文件夹中的.pdb文件,关闭VS并重新启动,然后重新启动整个计算机(这是Windows!有时最复杂,无法解释的问题可以这样解决:\)
I have tried cleaning solution, rebuilding , deleting the .pdb files in the obj and bin folders, closing VS and restarting it, restarting the whole machine (It's Windows! Sometimes the most complicated, unexplained problems get fixed like this :\ )
任何想法我还能尝试什么?这是在VS2015上的项目
Any idea what else I can try? it's a project on VS2015
推荐答案
我发现了问题,事实证明IIS配置为使用备份文件夹中项目的其他副本。这听起来很傻,但是如果有人有类似的问题,我将继续公开这个问题。
I found the issue, it turns out IIS was configured to use a different copy of the project I had in my backup folder. It sounds pretty silly but I'll keep this question open if someone had something similar.
更多推荐
"该断点当前不会被命中。在dll文件中找到了文件副本,但是当前源代码不同。
发布评论