"没有可供&QUOT编辑;无法打开的.cs [英] "There is no editor available for" Can't open .cs

查看:155
本文介绍了"没有可供&QUOT编辑;无法打开的.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑关机的一个项目工作时,当我再次打开C#和恢复它,我得到一个错误说没有可用的filename.cs编辑确保该文件类型(的.cs)应用程序安装
和现在的我根本无法访问我的代码。
我使用Visual C#2010速成。
我试图直接打开它,它带来了C#,但cs文件在记事本中打开。
的文件大小为30KB,因此并没有被删除。
和还有在上次运行的debug文件夹工作.exe文件。
有什么办法恢复的代码?


解决方案

要解决你所需要的问题:




  1. 记事本+ +



和你应该遵循这个简单的步骤:




  1. 关闭Visual Studio的


  2. 转到你的VS版本通常在备份文件夹:C:\用户(用户名)\Documents\Visual工作室(一年)\Backup Files\your项目或应用程序的名称。


  3. 打开最后您损坏的文件的备份文件,一般的名称格式为:恢复-month. - 日 - 年时间(你的文件名)的.cs用记事本++和复制源代码


  4. 转到您已损坏的文件在项目文件夹,并用记事本打开它++,编辑=>选择全部=>过往的源代码并保存。


  5. 转到Windows启动列表和搜索:Visual Studio工具文件夹,打开它并双击:开发人员命令提示符下VS(年)

  6. $。 b $ b
  7. 在开发者命令提示符写这两个代码:devenv.exe的/设置,然后devenv的/ resetskippkgs


  8. < 。p>打开项目




请注意:如果没有为你工作,尝试前做的步骤这种布置:



1)=> 2)=> 3)=> 4)=> 7)=> 1)=> 5)=> 6)=> 7)



和您的问题将得到解决。



它的工作原理100%对我来说,我希望这将可以帮助你!


My computer shut down while working on a project and when I opened C# again and recovered it, I got an error saying "There is no editor available for filename.cs Make sure the application for the file type (.cs) is installed" And now I can't access my code at all. I'm using Visual C# 2010 express. I tried opening it directly and it brings up C# but the .cs file opens up in notepad. The file size is 30kb so it didn't get deleted. And there is still a working .exe in the debug folder of the last run. Is there any way to recover the code?

解决方案

To fix the problem you need:

  1. NotePad++

And you should follow this simple steps:

  1. Close Visual Studio.

  2. Go to the Backup Folder of your VS version usually in: "C:\Users(your user name)\Documents\Visual Studio (year)\Backup Files\your project or application name".

  3. Open the last Backup file of your corrupted file, usually the name format is : "Recovered-month.-day-year-time.(Your File Name).cs" with NotePad++, and copy the source code.

  4. Go to your corrupted file in the project folder and open it with NotePad++, Edit => Select All => Past the source code and Save.

  5. Go to windows start list and search for: "Visual Studio Tools" folder, open it and double click on: "Developer Command Prompt for VS(year)".

  6. Write this two codes in the Developer Command Prompt: "devenv.exe /setup" and then "devenv /resetskippkgs" .

  7. Open your project.

Note: if this didn't work for you try to do the steps before in this arrangement:

1) => 2) => 3) => 4) => 7) => 1) => 5) => 6) => 7)

and your problem will be fixed.

It works 100% for me, i hope this will helps you!

这篇关于&QUOT;没有可供&QUOT编辑;无法打开的.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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