更新到Team Foundation Server 2015 Update 1后,我在所有版本中收到以下警告:
The MSBuild version parameter has been deprecated. Ignoring value: latest
我还必须删除所有构建代理并重新添加它们,包括它们的服务,以使它们再次联机。
我发现错误来自VSBuild.ps1脚本,但我不相信更改脚本,我相信我应该在构建控制器配置中更改一些内容?
MSBuild日志
2015-12-04T08:12:18.5327509Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
2015-12-04T08:12:18.5796270Z Running tasks
2015-12-04T08:12:18.5952509Z Starting task: Build solution **\*.sln
2015-12-04T08:12:18.6265000Z Executing the powershell script: C:\TfsBuildAgents\Agent-TFSServer\tasks\VSBuild\1.0.16\VSBuild.ps1
2015-12-04T08:12:18.7671279Z ##[warning]The MSBuild version parameter has been deprecated. Ignoring value: latest
2015-12-04T08:12:18.9077636Z C:\TfsBuildAgents\Agent-TFSServer\agent\worker\tools\NuGet.exe restore "C:\TfsBuildAgents\Agent-TFSServer\_work\2\s\Folder1\Solution.sln" -NonInteractive
2015-12-04T08:12:19.1421260Z MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
2015-12-04T08:12:19.2046261Z All packages listed in packages.config are already installed.
2015-12-04T08:12:19.2202682Z C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "C:\TfsBuildAgents\Agent-TFSServer\_work\2\s\Folder1\Solution.sln" /nologo /m /nr:false /t:"Clean" /fl /flp:"logfile=C:\TfsBuildAgents\Agent-TFSServer\_work\2\s\Folder1\Solution.sln-clean.log" /dl:CentralLogger,"C:\TfsBuildAgents\Agent-TFSServer\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\TfsBuildAgents\Agent-TFSServer\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="any cpu" /p:configuration="debug" /p:VisualStudioVersion="14.0"
2015-12-04T08:12:19.2671266Z Build started 04.12.2015 09:12:19.