【发布时间】:2015-08-26 09:05:42
【问题描述】:
有没有办法用 NServiceBus 消息创建一个 PCL(就像你可以为 ServiceStack 一样)?我尝试添加 NuGet 包,但似乎不支持 Xamarin
Install-Package NServiceBus
Install failed. Rolling back...
Package 'NServiceBus 5.2.5' does not exist in project 'RZ.Services.ServiceModel'
Install-Package : Could not install package 'NServiceBus 5.2.5'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<< NServiceBus
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
未来计划是否有任何变通方案来支持这一点?我们确实永远不会在其他平台上使用 NServiceBus,但我们可能希望同时使用 NServiceBus 和 ServiceStack 来支持不同的场景,因为它们将共享消息,所以必须将它们放在一个类库中。
【问题讨论】:
标签: servicestack nservicebus portable-class-library