ActiveMQ客户端Apache.NMS从.net 4.0移植到.net standard 2.0

1.从官网或GitHub下载Apache.NMS源码

2.新建.net standard 2.0类库

3.将源码复制到新建的类库中,并删除或注释CommonAssemblyInfo.cs文件(程序集版本类)

 

4.同样的方法创建Apache.NMS.ActiveMQ类库

5.添加Apache.NMS项目引用,并用nuget添加Ionic.Zlib.Core(.net 4.0项目依赖Ionic.Zlib)

6.注释Connection类的System.Runtime.Remoting命名空间(.net core和.net standard不支持该命名空间,生成会自动提示错误位置)

 

.net客户端驱动官网:http://activemq.apache.org/nms

源码下载地址:

dll下载地址:http://archive.apache.org/dist/activemq/apache-nms/1.7.0/

Apache.NMS:
https://cwiki.apache.org/confluence/display/NMS/NMS+API+Downloads

https://github.com/apache/activemq-nms-api

Apache.NMS.ActiveMQ:
https://cwiki.apache.org/confluence/display/NMS/ActiveMQ+Downloads

https://github.com/apache/activemq-nms-openwire

 

posted @ 2018-11-29 15:36  唐 森  阅读(694)  评论(0编辑  收藏  举报