gpt4 book ai didi

tfs - 运行 TFS 2015 自定义构建任务时出现异常

转载 作者:行者123 更新时间:2023-12-01 06:06:20 25 4
gpt4 key购买 nike

我为 TFS 2015 开发了一个插件(扩展)。
该插件实际上是一个自定义构建任务,可以作为构建过程中的一个步骤添加。

问题是,当我开发插件时,我使用了 TFS 2015 更新 2.1 但我的用户使用 更新 2.0 在请求用户输入的过程中插件开始运行后不久,他们就会看到这个奇怪的错误。

执行此行时:

var build = tl.getInput(MyConstants.SomeInput, true);  

出现此错误:
17:46:13.932774 Process logging event with task handler. 17:46:13.932774
---------------------------------------------------------------------------
17:46:13.932774 System.FormatException: Input string was not in a correct format.
17:46:13.932774 at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
17:46:13.932774 at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
17:46:13.932774 at System.String.Format(IFormatProvider provider, String format, Object[] args)
17:46:13.932774 at Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.BaseContext.LogMessageWithDecoration(LoggingVerbosity verbosity, String decoration, String message, Object[] args) 17:46:13.932774 at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
17:46:13.932774 at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
17:46:13.932774 at System.String.Format(IFormatProvider provider, String format, Object[] args)
17:46:13.932774 at Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.BaseContext.LogMessageWithDecoration(LoggingVerbosity verbosity, String decoration, String message, Object[] args) 17:46:13.932774
---------------------------------------------------------------------------

我能够重现此错误,它仅存在于更新 2.0 中,并在更新到 2.1 后消失。我进行了搜索,但在更新 2.1 更改日志中没有看到任何暗示与我的错误相关的错误修复的任何内容。

我错过了什么?

最佳答案

假设您的扩展程序具有跨平台构建任务。您可以查看 Team Foundation Server 2015 Update 2.1 Fixed Bugs .在 Build for Update 2 下修复了一个错误:

Extensions that have cross-platform Build tasks do not work.

关于tfs - 运行 TFS 2015 自定义构建任务时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38550367/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com