NServicebus.host.exe 无法使我的 class 库在 .Net Framework 4.5.1 Visual studio 2015 中运行

NServicebus.host.exe not making my class library runnable in .Net Framework 4.5.1 Visual studio 2015

我正在使用 Visual studio 2015 框架 4.5.1 和 NServicebus5。

我正在从复数视觉视频中学习 NServicebus。它提到 "To use the host just create a new C# class library and reference the NServiceBus.Host NuGet package. The package will create an example endpoint configuration and sets the NServiceBus.Host.exe as the startup project for the endpoint."

但是,在 visual studio 2015 中,属性 --> 调试选项卡下没有可用的 "startup project" 选项。此外,NServicebus.host(6.0.0) 没有创建端点配置文件。因此我无法 运行 我的 class 图书馆。

谁能告诉我如何让它在 visual studio 2015 年发挥作用?

Select 使用 RH 鼠标按钮在解决方案资源管理器中的项目,然后从菜单中选择 设置为启动项目

当您在解决方案中有更多端点(端点=项目)时,select 使用 RH 鼠标按钮在解决方案资源管理器中解决方案,然后选择 设置启动项目... 从菜单中。单击多个项目单选按钮。

最近没查PluralSight,学习的时候只有一个视频。我发现 Particular 站点上的教程非常好,现在 GitHub 上有很多很好的例子。无论你做什么,假设你在学习时至少要放弃一个项目。 David Boike 的书非常适合将所有内容整合在一起进行部署。