random cs files not opening in visual studio 2012

前端 未结 6 1577
灰色年华
灰色年华 2021-02-19 19:47

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

6条回答
  •  爱一瞬间的悲伤
    2021-02-19 20:08

    I also had this issue with Visual Studio 2013 (a.k.a. version 12.0), driving me nuts. Repairing, uninstalling, reinstalling, deleting .dlls, .csprojs, .suos, cleaning, rebuilding. Nothing helped. As a last resort before doing a clean install of Windows, I went through these steps which successfully solved the problem:

    • Removed VS through Windows' Add/Remove feature.
    • Deleted all files and folders referencing Visual Studio 12.0 in %AppData%, %ProgramData% and Program Files (x86) (this last one left me 13k files totaling 200 MB+ after uninstall)
    • Rebooted
    • Ran CCleaner's file and registry cleaning tools
    • Used regedit to search for 'Visual Studio 12' and '12.0', essentially removing all keys/folders referencing Visual Studio 12.0 (leaving pure file references as they amounted an insane number)
    • Rebooted, ran CCleaner again, rebooted.
    • Installed Visual Studio 2013 again, changing the path from '... 12.0' to '... 12'.
    • Manually applied a Windows hotfix (KB2664825) which somehow failed during installation.

    Done, and it worked!

    On a side note, my parallel installs of VS2010 and VS2012 was not affected at any point of the issue I was having with VS2013.

提交回复
热议问题