Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to eliminate certain annoying message during framework source code debugging

While debugging the framework source code I always get this annoying message from the studio:

Some bytes have been replaced with the Unicode substitution character while loading file C:\Users\markk\AppData\Local\Temp\SymbolCache\src\source.NET\4\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\Core\Microsoft\Scripting\Compiler\VariableBinder.cs\1305376\VariableBinder.cs with Unicode (UTF-8) encoding. Saving the file will not preserve the original file contents.

As a result, the source code is open in modified mode (with an asterisk in the name). This is hugely annoying.

Does anyone know how to make it go away? I am using VS2010.

Thanks.

like image 455
mark Avatar asked Jul 28 '10 13:07

mark


2 Answers

It seems a vs2010 bug. I tried but i cannot reproduce it.

This maybe could be a easy workaround:

go to visual studio option --> Debugging

in the general options you should uncheck "Require source files to exactly match the original version"

hope this helps

like image 167
giammin Avatar answered Nov 12 '22 16:11

giammin


Just ran into similar issue and found a way to fix it:

  1. Open "Region" from Control Panel
  2. Choose "Administrative" tab
  3. Check if "Language for non-Unicode programs" is any UTF-8 or Unicode language that other than English (In my case it is Chinese). If so, click "Change system locale..." to change it to English.

It then works after locale change and rebooting.

like image 22
Deqing Avatar answered Nov 12 '22 15:11

Deqing