我有一个解决方案文件,在解决方案的左下角有10个。我的电脑上只安装了VS2013。任何时候,我尝试打开该解决方案,我得到这个错误:打开Visual Studio 2010解决方案在Visual Studio 2013中
One or more projects in the solution were not loaded correctly
Please see the Output Window for details
,并在输出窗口中的细节是:
C:\Users\Desktop\ERT - ERT-sdk\C#\4.0\Sample.csproj : error
The project file could not be loaded.
Data at the root level is invalid. Line 1, position 1.
C:\Users\Desktop\ERT - ERT-sdk\C#\4.0\Sample.csproj
什么我需要改变,所以我可以加载解决方案和项目VS2013中PC上的文件?
编辑
以下是sample.csproj文件的前7行。如果需要更多线路,请告诉我,谢谢!
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{90CCE281-D71C-4EA6-9C17-A3C052B583D4}</ProjectGuid>
EDIT 2
上www.w3schools.com/xml/sml_validator.asp它抛出Error运行它通过一个XML语法检查:
Error on Line 1 at column 6:
XML declaration allowed only at the start of the document
较新版本的VS通常可以打开较旧的项目文件。当你看着它所抱怨的那一行时,你是否看到有关内容的奇怪事情?也许粘贴文件的前几行? –
@MattiVirkkunen - 它会是解决方案文件的前几行吗? Sample.csproj? –
错误消息提到Sample.csproj,所以它可能是该文件。 –