当我重新运行基于 psake 的部署过程时,我的 NServiceBus (3.3.0) 端点不会恢复处理消息。在 services.msc 下,状态为空白。
这是我的 psake 脚本(删除了不相关的内容):
function global:deploy_endpoint($name) {
$project = "$BaseDir\src\$name\$name.csproj"
$buildPath = "$DeployBaseDir\$name"
$deployPath = "c:\ReloDotNet2_ServiceEndpoints\$name"
exec { msbuild $project "/p:Configuration=Debug;OutputPath=$buildPath" "/t:Build" }
exec { & "$deployPath\NServiceBus.Host.exe" /uninstall }
exec { msdeploy "-verb:sync" "-source:contentPath=$buildPath" "-dest:contentPath=$deployPath" }
exec { & "$deployPath\NServiceBus.Host.exe" /install }
}