打开 Visual Studio 2010 解决方案 Visual Studio 2013
Opening Visual Studio 2010 Solution In Visual Studio 2013
我有一个解决方案文件,在解决方案的左下角有 10 个。我的电脑上只安装了 VS2013。任何时候,我尝试打开解决方案时都会收到此错误:
One or more projects in the solution were not loaded correctly
Please see the Output Window for details
输出 window 中的详细信息是:
C:\Users\Desktop\ERT - ERT-sdk\C#.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#.0\Sample.csproj
我需要更改什么才能在我的 PC 上使用 VS2013 加载解决方案和项目文件?
编辑
下面是 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>
编辑 2
运行 它通过 www.w3schools 上的 XML 语法检查。com/xml/sml_validator。asp 它抛出错误:
Error on Line 1 at column 6:
XML declaration allowed only at the start of the document
错误消息指向文件开头的垃圾字节。可能是重复或双重编码的 UTF-8 字节顺序标记。
使用二进制安全编辑器(例如十六进制编辑器)删除垃圾字节,您应该可以开始了。
甚至只是制作一个副本,在绝对忽略这些字符的编辑器中打开它,然后将整个内容复制并粘贴到您的原始文件中。
我有一个解决方案文件,在解决方案的左下角有 10 个。我的电脑上只安装了 VS2013。任何时候,我尝试打开解决方案时都会收到此错误:
One or more projects in the solution were not loaded correctly
Please see the Output Window for details
输出 window 中的详细信息是:
C:\Users\Desktop\ERT - ERT-sdk\C#.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#.0\Sample.csproj
我需要更改什么才能在我的 PC 上使用 VS2013 加载解决方案和项目文件?
编辑
下面是 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>
编辑 2
运行 它通过 www.w3schools 上的 XML 语法检查。com/xml/sml_validator。asp 它抛出错误:
Error on Line 1 at column 6:
XML declaration allowed only at the start of the document
错误消息指向文件开头的垃圾字节。可能是重复或双重编码的 UTF-8 字节顺序标记。
使用二进制安全编辑器(例如十六进制编辑器)删除垃圾字节,您应该可以开始了。
甚至只是制作一个副本,在绝对忽略这些字符的编辑器中打开它,然后将整个内容复制并粘贴到您的原始文件中。