filename.cs没有可用的编辑器确保安装了文件类型(.cs)的应用程序 [英] There is no editor available for filename.cs Make sure the application for the file type (.cs) is installed

查看:1207
本文介绍了filename.cs没有可用的编辑器确保安装了文件类型(.cs)的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有

Dear all

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?

推荐答案

正如^ Mo ^所建议的那样,你很可能是VS安装(或者可能是只是注册表)已损坏,重新安装或修复安装应修复它。但是,首先要快速尝试一些事情:在没有项目的情况下运行VS,因此它会出现一个空白的新页面。运气好的话,它会告诉你它无法关闭,它可以恢复。如果是,它可以同时重新建立文件关联。 (您也可以在Windows资源管理器中手动完成)
As ^Mo^ has suggested, it it likely that you VS installation (or possibly just the registry) is corrupt, and a re-installation or a repair installation should fix it. However, it's worth trying something quick first: run VS without a project, so it comes up with a blank, new page. With any luck, it will tell you that it failed to shut down, and that it can recover. If it does it may re-establish the file associations at the same time. (You could do it manually in Windows Explorer as well)


没有任何恢复文件的选项.cs
No any option to recover the file .cs


要解决您需要的问题:



1)NotePad ++



你应该按照这个简单的步骤:



1)关闭Visual Studio。



2)转到VS版本的备份文件夹通常在:C:\用户(您的用户名)\ Document \ Visual Studio(年)\ Backup Files \ yourour project or application name。



3)打开最后一个您的损坏文件的备份文件,通常是名称格式:Recovered-month.-day-year-time。(您的文件名).cs,带有NotePad ++,并复制源代码。



4)转到项目文件夹中已损坏的文件,然后使用NotePad ++,Edit =>打开它。选择全部=>过了源代码并保存。



5)转到Windows开始列表并搜索:Visual Studio Tools文件夹,打开它并双击:开发人员命令提示符VS(年份)。



6)在开发人员命令提示符中写下这两个代码:devenv.exe / setup然后devenv / resetskippkgs 。



7)打开你的项目。



注意:如果这不适合你尝试在此安排中执行以下步骤:



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



你的问题将得到解决。



它对我来说100%有效,我希望这对你有帮助!!



谢谢!!
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 !!

Thanks !!


这篇关于filename.cs没有可用的编辑器确保安装了文件类型(.cs)的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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