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

标签 tfs msbuild tfsbuild

我正在尝试为我公司的一个产品设置每晚构建。当我执行构建时,它在 45 秒左右后失败,给出错误“解析解决方案文件中的嵌套项目部分时出错。

这是构建的日志:

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.



这是来自 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



该解决方案从 Visual Studio 中正确构建。

最佳答案

尝试删除然后重新添加一些文件,以导致重新生成 sln 文件。这样我就构建成功了。由于某种原因,我的 sln 文件格式不正确。

关于tfs - Team Foundation Server 2010/MSBuild : Error parsing the nested project section in solution file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6599966/

相关文章:

unit-testing - 在单个单元测试失败时失败 TFS 构建

git - 是否可以一起使用 GIT 和 TFS 源代码管理

nunit - 自定义逻辑运行后无法使 TFS 构建失败

powershell - 在TFS中使用Powershell更改内部版本号

TFS - 为成功发布到特定环境创建警报

tfs - 如何使用 TFS SDK 从工作项获取超链接文档列表

powershell - 使用PowerShell自动构建dwproj

.net-core - 了解 .NET Core csproj 操作

MSBuild:首次执行时目标输入和输出失败

sql-server - dacpac - CLR 程序集引用路径问题