从代码构建解决方案导致“无法加载项目文件”。根级别的数据无效。第2行,第1位。 [英] Build solution from code results in "The project file could not be loaded. Data at the root level is invalid. line 2, position 1.

查看:733
本文介绍了从代码构建解决方案导致“无法加载项目文件”。根级别的数据无效。第2行,第1位。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Microsoft Visual Studio解决方案文件,格式版本9.00

Microsoft Visual Studio Solution File, Format Version 9.00

#Visual Studio 2005

# Visual Studio 2005

项目("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}")="xxx","xxx.csproj", " {{E2CBE9E5-3W12-4A0C-B706-EF36WC16C254}"

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xxx", "xxx.csproj", "{E2CBE9E5-3W12-4A0C-B706-EF36WC16C254}"

EndProject

EndProject

全球

GlobalSection(SolutionConfigurationPlatforms)= preSolution

GlobalSection(SolutionConfigurationPlatforms) = preSolution

Debug | Any CPU = Debug | Any CPU

Debug|Any CPU = Debug|Any CPU

Release | Any CPU = Release | Any CPU

Release|Any CPU = Release|Any CPU

EndGlobalSection

EndGlobalSection

GlobalSection(ProjectConfigurationPlatforms)= postSolution

GlobalSection(ProjectConfigurationPlatforms) = postSolution

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254} .Debug |任何CPU.ActiveCfg = Debug |任何CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254} .Debug |任何CPU.Build.0 =调试|任何CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254}.Debug|Any CPU.Build.0 = Debug|Any CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254}。释放|任何CPU.ActiveCfg =发布|任何CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254}.Release|Any CPU.ActiveCfg = Release|Any CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254 } .Release |任何CPU.Build.0 =发布|任何CPU

{E2CBD9E5-3B12-4F0C-B796-EF363C16C254}.Release|Any CPU.Build.0 = Release|Any CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5} .Debug | Any CPU.ActiveCfg = Debug | Any CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU

{6E6CE376-34DF- 492A-8006-F0542CEA05E5} .Debug |任何CPU.Build.0 =调试|任何CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}.Debug|Any CPU.Build.0 = Debug|Any CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}。释放|任何CPU.ActiveCfg =发布|任何CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}.Release|Any CPU.ActiveCfg = Release|Any CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}。释放|任何CPU.Build.0 =发布|任何CPU

{6E6CE376-34DF-492A-8006-F0542CEA05E5}.Release|Any CPU.Build.0 = Release|Any CPU

EndGlobalSection

EndGlobalSection

GlobalSection(SolutionProperties)= preSolution

GlobalSection(SolutionProperties) = preSolution

HideSolutionNode = FALSE

HideSolutionNode = FALSE

EndGlobalSection

EndGlobalSection

EndGlobal

EndGlobal

推荐答案

您好,

最有可能删除解决方案文件顶部的空行。

Most likely you remove an empty line on the top of the solution file.

第二个选项 - 您的项目(xml)文件格式不正确或编码不正确。 

Second option - your project (xml) file is not well-formed or are in incorrect encoding. 

第三个选项 - 当前配置中不支持的项目类型。

third option - type of the project not supported in the current configuration.

简单的解决方案 - 创建新的解决方案提交并添加项目。

Simple solution - create new solution file and add your project.


这篇关于从代码构建解决方案导致“无法加载项目文件”。根级别的数据无效。第2行,第1位。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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