Visual Studio 2013 年的发布管理 - 发布异常
Release Management for Visual Studio 2013 - Release Exception
在 TFS 生成服务器上成功执行 MsBuild 后出现以下错误:
ERROR: Value cannot be null.
Parameter name: The attribute 'BuildNumber' is not part of this XElement
at Microsoft.TeamFoundation.Release.Common.ExtensionMethods.XmlExtensionMethods.GetAttributeValue(XElement element, XName attributeName)
at Microsoft.TeamFoundation.Release.Data.Model.ReleaseComponent.SetBuildToLatest()
at Microsoft.TeamFoundation.Release.Workflow.Services.ReleaseWorkflowService.InitiateFromBuild(Uri teamFoundationServerUrl, String teamProject, String buildDefinition, String buildNumber, String targetStageName)
at Microsoft.TeamFoundation.Release.Build.Program.Release()
at Microsoft.TeamFoundation.Release.Build.Program.MainImplementation(String[] args, Action`1 consoleWriter, Action releaseAction)
构建是自动部署到 DEV 服务器的发布管理管道的一部分。
有什么想法吗?
发现问题:
发布过程中有两个组件 -- 发布过程中的第二个组件使用了与第一个不同的构建模板。第一个组件部署成功,但第二个组件尚未在 TFS 中构建,因此 BuildNumber 为空。
在 TFS 生成服务器上成功执行 MsBuild 后出现以下错误:
ERROR: Value cannot be null.
Parameter name: The attribute 'BuildNumber' is not part of this XElement
at Microsoft.TeamFoundation.Release.Common.ExtensionMethods.XmlExtensionMethods.GetAttributeValue(XElement element, XName attributeName)
at Microsoft.TeamFoundation.Release.Data.Model.ReleaseComponent.SetBuildToLatest()
at Microsoft.TeamFoundation.Release.Workflow.Services.ReleaseWorkflowService.InitiateFromBuild(Uri teamFoundationServerUrl, String teamProject, String buildDefinition, String buildNumber, String targetStageName)
at Microsoft.TeamFoundation.Release.Build.Program.Release()
at Microsoft.TeamFoundation.Release.Build.Program.MainImplementation(String[] args, Action`1 consoleWriter, Action releaseAction)
构建是自动部署到 DEV 服务器的发布管理管道的一部分。
有什么想法吗?
发现问题:
发布过程中有两个组件 -- 发布过程中的第二个组件使用了与第一个不同的构建模板。第一个组件部署成功,但第二个组件尚未在 TFS 中构建,因此 BuildNumber 为空。