在 visual studio 2017 中的 aspnetcore 2 上安装 NServiceBus.Host 时缺少 NServiceBus.Host.exe

NServiceBus.Host.exe is missing while installing NServiceBus.Host on aspnetcore 2 in visual studio 2017

我正在尝试 运行 NServiceBus with AspNetCore2 on visual studio 2017。当我安装 NServiceBus(版本 7.0.0-beta0001)和 NServiceBus.Host(版本 8.0.0-beta0001 ) 通过 nuget,它说包安装成功。

但是,当我尝试检查 bin/debug 文件夹中已安装的 NServiceBus 的 dll 和 exe 文件时,它不在那里。

我所做的快速观察是,NServiceBus(7.0 版...)安装正确,而 NServiceBus.Host(8.0 版...)在 visual studio 中的 nuget 文件夹下显示一条警告消息:

Package 'NServiceBus.Host 8.0.0-beta0001' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

请帮助我解决这个问题,或者如果问题已经得到解答(我在 SO 中找不到)请指出我更正的问题

NServiceBus.Host 由于指定的原因 here 正在被淘汰。长话短说,在 .NET Core 中它并没有增加太多的价值并且有更多的缺点。

但是,您仍然可以 运行 控制台应用程序中的 NServiceBus 进程。查看自托管示例 here.