InvokeProcess 自定义活动不调用
我正在执行自定义 TFS 构建的第一步。我创建了一个调用批处理文件的 InvokeProcess。我在日志中看到调用了批处理文件,但没有看到批处理文件被执行。在 FileName 中,我输入了文件的位置和名称(例如“C:\myBatch.bat”)。 为了查看它的工作原理,我也将文件名命名为“Notepad.exe”,但它也不起作用。 可能是什么问题?
谢谢
I'm doing my first steps on Customizing the TFS builds. I created an InvokeProcess that calls a batch file. I see in the log that the batch file is called, but I do not see that the batch file is executed. In the FileName I put the located and the name of the file (for example "C:\myBatch.bat".
Just to see it working, I called in the file name also "Notepad.exe" and also it did not work.
What can be the problem?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
指定调用进程活动的工作目录属性,如果文件路径为“C:\myBatch.bat”,则将工作目录设置为“c:\”
此外,您还可以启用调用进程活动的日志记录。检查这里:
https://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/02/23/logging-results-from-invokeprocess-in-a-vs2010-team-build.aspx< /a>
Specify the WorkingDirectory property for the Invoke Process Activity, If you have file path as "C:\myBatch.bat" then set WorkingDirectory as "c:\"
Also, you can enable the logging for Invoke Process Activity. Check here:
https://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/02/23/logging-results-from-invokeprocess-in-a-vs2010-team-build.aspx