重新安装NServiceBus端点会停止该服务

时间:2013-02-12 20:51:40

标签: nservicebus psake

当我重新运行基于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 }
}

1 个答案:

答案 0 :(得分:1)

/ install不会自动为您启动服务。

您需要在运行/ install

后启动该服务