后台进程在构建步骤结束时被杀死 [英] Background process killed at the end of build step
问题描述
您好,
我正在尝试从TFS构建步骤,批量启动或命令行启动后台任务(服务器)(我尝试了两者) 。我使用start命令在后台批量启动。如果我在TFS之外启动它,它会打开一个窗口,当
服务器启动时,会通知它。只要打开这个窗口,我的服务器就可以正常工作。
I'm currently trying to launch a background task (a server) from a TFS build step, through batch launching or command line (I tried both).I use the start command to launch by batch in background. If I launch it outside TFS, it opens a window and when the
server is started, it is notified. As long as this window is opened, my server works fine.
当我在TFS版本中插入它时,过程正常启动(我可以看到它)在任务管理器中)虽然没有打开新窗口。当构建进入下一步时,该进程被终止,没有任何信息(我设置system.debug = true)。
When I insert this in a TFS build, the process starts properly (I can see it in the task manager) though there is no new window opened. When the build goes to the next step, the process is killed, without any information (I set system.debug=true).
任何人都可以帮助我吗?
Can anyone help me ?
谢谢
Alexandre
Alexandre
推荐答案
嗨AJoly,
Hi AJoly,
如果你想看到窗口,你需要将构建代理配置为以交互方式运行:
If you want to see the window, you need to configure the build agent run as interactive:
https://www.visualstudio.com/en-us/docs/build/actions/agents/v1-windows
最诚挚的问候
Limitxiao Gao
Limitxiao Gao
这篇关于后台进程在构建步骤结束时被杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!