我正试图在后台使用cmd shell运行一个名为CoreServer.exe的文件,如前所述
here
当我指定服务器的路径时,它告诉我,
'.' is not recognized as an internal or external command,
operable program or batch file.
另一方面,如果我删除
shell: cmd
它运行良好。但在这种情况下,它使用Poweshell运行,我不希望这样,因为在Powershell中运行不是我想要的。
这是我的工作流程文件。我在GitHub上的公共回购中也有这个
here
。
name: Test unit tests CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: setup Msbuild
uses: microsoft/[email protected]
#try nc -v -N 127.0.0.1 3334
#curl http://localhost:3333 -I
#vstest.console.exe ./Pico/Medman/FluidTransferTests/bin/Release/net481/FluidTransferTests.dll
#Start CoreServer.exe in background
- name: Start CoreServer.exe in the background
shell: cmd
run: ./Debug/CoreServer.exe -c -s &
- name: Wait 7 seconds
run: sleep 7
- name: See status
run: netstat -ntp
为了添加更多信息,当我在本地的命令提示符下运行此CoreServer.exe时,它运行良好,并显示以下内容:,