Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team Foundation Server 2010 / MSBuild: Error parsing the nested project section in solution file

I'm trying to set up a nightly build for one of my company's products. When I execute the build, it fails after 45 or so seconds, giving the error "Error parsing the nested project section in solution file.

This is the log from the build:

Delete Binaries Directory

00:17 Delete Workspace

00:00 Delete Sources Directory

00:00 Create Workspace

00:18 Get Workspace

00:01 Create Label Label [label] (version W60_2_VMCORPTFS01;CL\me) was successfully created.

00:04 Compile, Test, and Associate Changesets and Work Items

00:04 Compile and Test

00:03 Run MSBuild for Project C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /noconsolelogger "e:\localstore\Productname_2.0\Product\Product.sln" /m:1 /fl /flp:"logfile=e:\localstore\ThisSpecificBuild\Product\Product.log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /p:OutDir="C:\Builds\2\Product\ThisSpecificBuild\Binaries\" /p:Configuration="Debug" /p:Platform="Any CPU" /p:VCBuildOverride="e:\localstore\Productname_2.0\Product\Product.sln.Any CPU.Debug.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/2934;InformationNodeId=1175609;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://localhost:8080/tfs/DefaultCollection;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;"

00:00 Built $/OMS/Branches/Product_2.0/Product/Product.sln for default targets. e:\localstore\ThisSpecificBuild\Product\Product.sln (1586): Error parsing the nested project section in solution file.

And this is the log from MSBuild:

Build started 7/6/2011 11:53:34 AM. e:\localstore\ThisSpecificBuild\Product\Product.sln(1586): Solution file error MSB5009: Error parsing the nested project section in solution file.

Build FAILED.

e:\localstore\ThisSpecificBuild\Product\Product.sln(1586): Solution file error MSB5009: Error parsing the nested project section in solution file.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.19

The solution builds correctly from within Visual Studio.

like image 924
Chris Avatar asked Jul 06 '11 16:07

Chris


1 Answers

Try to remove and then re-add some file, to cause sln file to be regenerated. This way I got build succeeded. My sln file was in an incorrect format for some reason.

like image 70
rovsen Avatar answered Oct 01 '22 06:10

rovsen