升级 NServiceBus 5 到 6

Upgrade NServiceBus 5 to 6

将 Nservicebus 从版本 5 升级到版本 6 后出现错误。 这发生在我的 MessageEndpoint 中调用 Customize 方法之前。 我的 MessageEndpoint 继承自 IConfigureThisEndpoint,AsA_Server

API 限制:程序集 'file:///PostSharp.dll' 已从其他位置加载。无法从同一应用程序域内的新位置加载它。

您是否在配置代码中包含 PostSharp.dll?如果这样做,请注意有 assembly scanning changes in NServiceBus version 6. Rather than including assemblies, an "exclude list" approach is used and you'll need to use the API to exclude only. Everything else will be automatically scanned. Full documentation on assembly scanning for version 6 can be found here.