我有一個解決方案文件,在解決方案的左下角有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,所以它可能是該文件。 –