简体   繁体   English

Visual Studio 2015 Update 3 无法打开 .cs 文件

[英]Visual Studio 2015 Update 3 doesn't open .cs files

After I installed IntelliJ IDEA (Jetbrains) and JDK 1.8.0_102 my Visual Studio isn't able to open .cs Files with my user account.安装 IntelliJ IDEA (Jetbrains) 和 JDK 1.8.0_102 后,我的 Visual Studio 无法使用我的用户帐户打开 .cs 文件。 It always show the error message "The document cannot be opened. It has been renamed, deleted or moved.".它总是显示错误消息“无法打开文档。它已被重命名、删除或移动。”。 On rightclick -> "open with" -> "Editor" the file opens in notepad - so there is no security issue.在右键单击->“打开方式”->“编辑器”时,文件在记事本中打开-因此不存在安全问题。

After I delete any.cs file and undo my pending changes, I can open each .cs file without any problem - but only in the current visual studio session.在删除 any.cs 文件并撤消待处理的更改后,我可以毫无问题地打开每个 .cs 文件 - 但仅限于当前的 Visual Studio 会话。 After reastart VS the problem occurs again.重新启动VS后,问题再次出现。

When I start Visual Studio with another user, there is no such problem!当我用另一个用户启动 Visual Studio 时,没有这样的问题!

I tried to repair Visual Studio, I tried to uninstall and reinstall Visual Studio and I also tried the VisualStudioUninstaller (which remove all settings in AppData folder) and reinstall Visual Studio again but nothing helps.我尝试修复 Visual Studio,尝试卸载并重新安装 Visual Studio,还尝试了 VisualStudioUninstaller(删除 AppData 文件夹中的所有设置)并再次重新安装 Visual Studio,但没有任何帮助。

I would be very grateful for any ideas.我将不胜感激任何想法。

Edit:编辑:

I also tried the flags to reset user settings /ResetSettings and /ResetUserData我还尝试使用标志来重置用户设置 /ResetSettings 和 /ResetUserData

When I start with /Save Mode the error message change to "The system cannot find the file specified. (Exception from HRESULT:0x80070002)".当我以 /Save Mode 开始时,错误消息更改为“系统找不到指定的文件。(来自 HRESULT:0x80070002 的异常)”。

My solution was to delete the local user profile.我的解决方案是删除本地用户配置文件。 After that, Visual Studio works fine again.之后,Visual Studio 再次正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM