.vbproj损坏并显示消息“无法加载项目文件。缺少根元素。“ [英] .vbproj corrupt with message "The project file could not be loaded. Root element is missing."

查看:1189
本文介绍了.vbproj损坏并显示消息“无法加载项目文件。缺少根元素。“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我意外地关闭了一个错误的开关,当时加载Adobe Illustrator导入的电脑关闭,当我打开电源时并打开解决方案,出现此错误消息

Hi,

I accidently switching off a wrong switch where my pc which on loading a Adobe Illustrator import at that time turn off and when I switch on the power and open the solution, this error message appear

"E:\My Source Code\Application File\Application\ApplicationApp\ApplicationApp.vbproj : error  : Unable to read the project file 'ApplicationApp.vbproj'. "

"E:\My Source Code\Application File\Application\ApplicationApp\ApplicationApp.vbproj : The project file could not be loaded. Root element is missing."







如何解决这个问题?




How to solve this?

推荐答案

右键单击解决方案资源管理器中的项目,然后选择编辑ApplicationApp.vbproj。或者,在任何纯文本编辑器(如记事本)中打开该文件。这是一个XML文件。看看你是否可以识别那里的腐败,并可能手动修复它。也许(希望)你有一个项目的备份,可以使用旧版本的文件作为替代或模板一般来看如何修复损坏的文件。如果所有这些都不起作用,请创建一个新项目,在那里复制源文件,将它们包含到项目中并重新创建可能丢失的设置,如程序集引用,目标平台等。
Right-click the project in the solution-explorer and select "Edit ApplicationApp.vbproj". Alternatively, open the file in any plain-text-editor (like Notepad). It's an XML-file. See if you can identify what's corrupt in there and maybe manually fix it. Maybe (hopefully) you have a backup of your project and can use the older version of the file either as a replacement or as a template how it should look like in general to fix the corrupted one. If all that doesn't work, create a new project, copy your source files there, include them into the project and recreate potentially lost settings, like assembly-references, target-platform etc.


此错误是由损坏的proj文件引起的。

Visual Studio总是在特定文件夹中有备份项目文件。

请浏览:

C:\ Users \<您的用户> ; \Documents\Visual Studio< Vs version> \ Backup Files \< your project>

您可以看到2个文件相同:

Original- May-18-2018-1209PM。< your project> .csproj

Recovered-May-18-2018-1209PM。< your project> .csproj



您只需要复制文件:Original-May-18-2018-1209PM。< your project> .csproj

并重新命名为< your project> .csproj& ;覆盖根项目文件夹。

麻烦解决了!
This error is caused by corrupted proj file.
Visual Studio allway has backup project file at specific folder.
Pls browse to:
C:\Users\<Your user>\Documents\Visual Studio <Vs version>\Backup Files\<your project>
You can see 2 file same as:
Original-May-18-2018-1209PM.<your project>.csproj
Recovered-May-18-2018-1209PM.<your project>.csproj

You only need copy file: Original-May-18-2018-1209PM.<your project>.csproj
And re-name as <your project>.csproj & overide at root project folder.
Trouble is solved!


这篇关于.vbproj损坏并显示消息“无法加载项目文件。缺少根元素。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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