Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TFS2015生成在带有';未找到文件'; 在Team Foundation Server 2015构建(OnFr前提)中,我有运行简单命令行命令的问题。所有命令行任务都会失败,并出现以下错误:“未找到文件:”_Tfs_Continuous Integration_Tfsbuild_Tfs 2015 - Fatal编程技术网

TFS2015生成在带有';未找到文件'; 在Team Foundation Server 2015构建(OnFr前提)中,我有运行简单命令行命令的问题。所有命令行任务都会失败,并出现以下错误:“未找到文件:”

TFS2015生成在带有';未找到文件'; 在Team Foundation Server 2015构建(OnFr前提)中,我有运行简单命令行命令的问题。所有命令行任务都会失败,并出现以下错误:“未找到文件:”,tfs,continuous-integration,tfsbuild,tfs-2015,Tfs,Continuous Integration,Tfsbuild,Tfs 2015,以以下生成定义为例: 这是使用内部构建代理执行的,将失败,日志中出现以下异常: BUILD FAILED 2016-01-20T12:04:47.5127709Z ##[warning]Filename doesn't indicate a full path to a executable file. 2016-01-20T12:04:47.5127709Z Executing the following commandline. (workingFolder = D:\_work\2\s)

以以下生成定义为例:

这是使用内部构建代理执行的,将失败,日志中出现以下异常:

BUILD FAILED
2016-01-20T12:04:47.5127709Z ##[warning]Filename doesn't indicate a full path to a executable file.
2016-01-20T12:04:47.5127709Z Executing the following commandline. (workingFolder = D:\_work\2\s)
2016-01-20T12:04:47.5127709Z date 
2016-01-20T12:04:47.5127709Z Error message highlight pattern: 
2016-01-20T12:04:47.5127709Z Warning message highlight pattern:      
2016-01-20T12:04:47.5439748Z ##[error]File not found: date
当然,这是一个简化的示例,我只想使用
date/t
命令输出当前日期。但是我尝试过的所有常规命令行命令都会出现相同的问题,例如
dir
time
path
等。除了执行的工具必须驻留在path变量中之外,它上的

该问题并非特定于一个构建定义或回购;它也可以复制到其他人身上

生成作为内置的svc\u tfsbuild帐户运行

我可能认为这是一个简单的设置,或者-疯狂猜测-一个与权利相关的问题,但找不到任何文档在哪里查找或检查什么。任何帮助都将不胜感激。

看来这也是一个很好的例子

简而言之,MSFT提到以下内容:

内置于命令提示符的命令不起作用。任何基于您的路径/路径文本可解决的问题都可以解决

在2015年10月27日的评论中指出,这将在下一个sprint中修复。目前提到的解决方法只是先执行cmd.exe,然后将其余部分作为参数提供

使用原始问题中的示例,这将导致:

Tool: cmd.exe
Arguments: /c "date /t"
我确实可以证实这一点