随机CS文件在Visual Studio 2012不开放 [英] random cs files not opening in visual studio 2012

查看:202
本文介绍了随机CS文件在Visual Studio 2012不开放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,这里是我的咸菜。我使用Visual Studion 2012年一直在开发我的顺利应用。我打开VS今天,我可以打开所有文件,我通常会(CS文件)。我按下启动按钮后开始调试......我得到xxx.cs没有发现错误




|未找到源| < -The标签




没有找到 xxx.cs




您需要找到xxx.cs以查看当前调用堆栈帧的源。



尝试之一以下选项:





源代码搜索信息



查找来源为[路径] \xxx.cs。校验MD5 {14 3AËD4 8D 6C E5 0 E2 56 3E 4B 3 DC 22 7A}



确定校验是否为下列位置相匹配:



1:[路径] \xxx.cs校验MD5 {14 3AËD4 8D 6C E5 0 E2 56 3E 4B 3 DC 22 7A}校验和匹配



文件[路径] \xxx.cs'存在



在以下位置的调试器发现来源:



1:[路径] \xxx.cs校验{14 3AËD4 8D 6C E5 0 E2 56 3E 4B 3 DC 22 7A}



调试器将使用源在位置1。






现在,如果我在链接的文本点击浏览该文件...没有任何反应。我停止xxx.cs调试器,双击并没有任何反应无论是。
我可以在其他CS文件和一些工作,然后单击有些不。这似乎完全随机...
任何人都经历了在此之前



我通过工具重置我的所有设置?|导入和导出设置并没有这样的伎俩。



xxx.cs和所有其他文件确实包含数据(至少VS应该打开一个空文件!)和我以很困惑这是怎么回事?有什么想法?



问候,



安东尼奥


解决方案

我也有这个问题随机在VS 2012,虽然我还没有找到根本原因(我觉得这是一个错误在Visual Studio中,因为它不会在2010年在同一项目中发生),我发现如何禁用恼人的症状,只是调试进行。还有就是关掉校验文件检查,在工具选项 - >选项 - >调试 - >常规:



要求源文件完全相同匹配原始版本
告诉调试器来验证一个源文件用于建立正在调试的可执行文件的源代码的版本相匹配。如果版本不匹配,系统会提示您查找匹配的来源。如果没有找到匹配的源,源代码不会被调试过程中显示出来。



http://msdn.microsoft.com/en-us/library/85yzd16c.aspx



缺点是,如果你有受此问题影响一个特定的文件断点,那么你会发现VS不会跟踪到这个文件,所以这个选项只应使用(IMO),如果有是造成你不小心调试麻烦的文件。



我找到更多的我会更新我的答案。


So here's my pickle. I'm using Visual Studion 2012 and been developing my application without a hitch. I opened VS today and I can open all the files as I normally would (cs files). After I press the Start button to begin debugging...I get xxx.cs not found errors.

| Source Not Found | <-The tab

xxx.cs not found

You need to find xxx.cs to view the source for the current call stack frame.

Try one of the following options:

Source search information

Locating source for '[PATH]\xxx.cs'. Checksum MD5 {14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a}

Determining whether the checksum matches for the following locations:

1: [PATH]\xxx.cs Checksum MD5 {14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a} Checksum matches.

The file'[PATH]\xxx.cs' exists.

The debugger found source in the following locations:

1: [PATH]\xxx.cs Checksum {14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a}

The debugger will use the source at location 1.

Now if I click on the linked text to browse for the file...nothing happens. I stop the debugger and double click on xxx.cs and nothing happens either. I can click on other cs files and SOME work and SOME don't. It seems completely random... Anybody has experienced this before?

I reset all my settings via Tools | Import and Export Settings and that did not do the trick.

xxx.cs and all the other files DO contain data (at least VS should open an empty file!) and I'm very confused as to what's going on... Any thoughts?

Regards,

Antonio

解决方案

I have had this problem randomly with VS 2012, and though I haven't found the root cause (I feel it is a bug in Visual Studio because it doesn't happen in 2010 in the same projects), I found how to disable the annoying symptom and just proceed with debugging. There is an option to turn off the checksum file check, in Tools -> Options -> Debugging -> General:

Require source files to exactly match the original version Tells the debugger to verify that a source file matches the version of the source code used to build the executable you are debugging. If the version does not match, you’ll be prompted to find a matching source. If a matching source is not found, the source code will not be displayed during debugging.

http://msdn.microsoft.com/en-us/library/85yzd16c.aspx

The downside is, if you have breakpoints in a particular file that is affected by this issue, then you may find VS won't trace into that file, so this option should only be used (IMO) if there are files causing trouble that you don't care to debug.

I will update my answer as I find more.

这篇关于随机CS文件在Visual Studio 2012不开放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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