随机cs文件在visual studio 2012中未打开 [英] random cs files not opening in visual studio 2012
问题描述
|源找不到| < - 标签
xxx.cs未找到
您需要查找xxx.cs才能查看当前调用堆栈帧的源。
尝试其中一个以下选项:
- 浏览并找到xxx .cs ... ! (注意:不是一个真正的链接)
来源搜索信息
找到'[PATH] \xxx.cs'的源码。校验和MD5 {14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a}
确定校验和是否匹配以下位置:
1:[PATH] \xxx.cs校验和MD5 {14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a}校验和匹配。
文件'[PATH] \xxx.cs'存在。
调试器在以下位置找到源:
1:[PATH] \xxx.cs校验和{14 3a e d4 8d 6c e5 0 e2 56 3e 4b 3 dc 22 7a}
调试器将在位置1使用源。
现在,如果我点击链接的文本浏览文件...没有任何反应。我停止调试器,双击xxx.cs,也没有任何事情发生。
我可以点击其他的cs文件和一些工作,有的不要。看来完全是随机的...
任何人以前都经历过这个?
我通过工具|导入和导出设置,并没有这样做。
xxx.cs和所有其他文件都包含数据(至少VS应该打开一个空文件!)和我很困惑,发生了什么事...任何想法?
问候,
Antonio
在我的情况下,文件有一些unicode字符或其他编码,可能是损坏的文件的结果。我右键单击 - >使用...->打开,并切换到带编码的C#编辑器选项。请注意,每一次都会提示是否自动检测编码,这是非常烦人,但希望你可以找到违规的字符并修复它们。
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:
- Browse and find xxx.cs...! (NOTE: NOT A REAL LINK HERE)
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
In my case the files had some unicode characters or other encodings, possibly a result of corrupted file. I right clicked-> Open With...-> and switched to the "C# Editor with encoding" option. Note this will prompt every single time to ask if it should auto detect encoding, which is very annoying but hopefully you can find the offending characters and fix them.
这篇关于随机cs文件在visual studio 2012中未打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!