Hi all,
The error looks like below. It happened even when I just tried to build a "hello world“ console application in both VS2010 and VS2012.
>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.OverrideTasks(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
I have tried to re-install VS2010 and VS2012 but it still happened. Since I am using windows 8 and I din't find a way to re-install the .net framework 4.0.
I am be trapped by this error for 3 days Is anyone know what happen and how to fix it? Any tips is appreciate!
Detail log:
Build started 5/31/2013 11:33:30 PM.Environment at start of build:
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\Jason\AppData\Roaming
CLASSPAT = .;C:\Program Files\Java\jdk1.7.0_03\lib;C:\Program Files\Java\jdk1.7.0_03\lib\tools.jar;
CommonProgramFiles = C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
CommonProgramW6432 = C:\Program Files\Common Files
COMPUTERNAME = JASON-PC
ComSpec = C:\windows\system32\cmd.exe
FP_NO_HOST_CHECK = NO
HOMEDRIVE = C:
HOMEPATH = \Users\Jason
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_03
LOCALAPPDATA = C:\Users\Jason\AppData\Local
LOGONSERVER = \\JASON-PC
NUMBER_OF_PROCESSORS = 2
OS = Windows_NT
Path = C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\Java\jdk1.7.0_03\jre\bin\server;C:\Program Files\Java\jdk1.7.0_03\bin;C:\Program Files\Java\jdk1.7.0_03\jre\bin;%ANT_HOME%/bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Microsoft SDKs\TypeScript\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE = x86
PROCESSOR_ARCHITEW6432 = AMD64
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 15 Stepping 11, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 0f0b
ProgramData = C:\ProgramData
ProgramFiles = C:\Program Files (x86)
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
PSModulePath = C:\windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC = C:\Users\Public
SESSIONNAME = Console
SSH_AGENT_PID = 3916
SSH_AUTH_SOCK = /tmp/ssh-RGIBAW2408/agent.2408
SystemDrive = C:
SystemRoot = C:\windows
TEMP = C:\Users\Jason\AppData\Local\Temp
TMP = C:\Users\Jason\AppData\Local\Temp
USERDOMAIN = Jason-PC
USERDOMAIN_ROAMINGPROFILE = Jason-PC
USERNAME = Jason
USERPROFILE = C:\Users\Jason
VisualStudioDir = C:\Users\Jason\Documents\Visual Studio 2010
VS100COMNTOOLS = D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
VS110COMNTOOLS = D:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
windir = C:\windows
23:33:30.705 1>Project "C:\Users\Jason\documents\visual studio 2010\Projects\win32test\win32test\win32test.vcxproj" on node 2 (rebuild target(s)).
23:33:30.719 1>Building with tools version "4.0".
23:33:30.764 1>Target "_CheckForInvalidConfigurationAndPlatform: (TargetId:2)" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Users\Jason\documents\visual studio 2010\Projects\win32test\win32test\win32test.vcxproj" (entry point):
Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
23:33:30.816 1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.OverrideTasks(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
23:33:30.816 1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "win32test.vcxproj" -- FAILED.: (TargetId:2)
23:33:30.818 1>Done Building Project "C:\Users\Jason\documents\visual studio 2010\Projects\win32test\win32test\win32test.vcxproj" (rebuild target(s)) -- FAILED.
Project Performance Summary:
113 ms C:\Users\Jason\documents\visual studio 2010\Projects\win32test\win32test\win32test.vcxproj 1 calls
113 ms rebuild 1 calls
Target Performance Summary:
52 ms _CheckForInvalidConfigurationAndPlatform 1 calls
Build FAILED.
Time Elapsed 00:00:00.11