删除 MS 部署警告 "exited with code 0x0"
Remove MS deploye warning "exited with code 0x0"
在 MSDdeploy 的 runCommand 中,我们得到以下警告
Warning: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x0'.
命令是
Package\OurProject.csproj.deploy.cmd
[some other options]
"-postSync:runCommand='powershell -inputformat none c:\AfterDeploy.ps1'"
您必须添加参数 successReturnCodes,例如successReturnCodes=0.
例如
Package\OurProject.csproj.deploy.cmd
[some other options]
"-postSync:runCommand='powershell -inputformat none c:\AfterDeploy.ps1',successReturnCodes=0"
在 MSDdeploy 的 runCommand 中,我们得到以下警告
Warning: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x0'.
命令是
Package\OurProject.csproj.deploy.cmd
[some other options]
"-postSync:runCommand='powershell -inputformat none c:\AfterDeploy.ps1'"
您必须添加参数 successReturnCodes,例如successReturnCodes=0.
例如
Package\OurProject.csproj.deploy.cmd
[some other options]
"-postSync:runCommand='powershell -inputformat none c:\AfterDeploy.ps1',successReturnCodes=0"