c# - Apache Active MQ .Net 客户端 (Apache NMS) 和 Visual Studio 2010 C# Express

标签 c# visual-studio-2010 activemq

我目前正在尝试使用 NMS Api .dll 测试 C# 客户端,以便与来自 Apache ActiveMQ 的 Message Broker 进行通信。我正在使用 Visual Studio C# 2010 Express 进行开发,我的目标框架是 4.0 Client Profile。但是当我尝试构建项目时,我遇到了一些我不知道如何解决的冲突。

我的设置如下:

  • .Net Target Framework 4.0 客户端配置文件
  • Apache.nms-1.5.0.dll
  • Apache.nms.ActiveMQ-1.5.2.dll

当我尝试构建我的客户端时,我遇到了以下冲突(翻译自德语):

Assembly “Apache.NMS.ActiveMQ” couldn’t be solved because it has a dependency to System.Web, Version=4.0.0.0 which doesn’t exists in the target framework.

Apache.NMS 相同。

我该如何解决这个问题?据我所知,在 .Net 4.0 中没有 System.Web (Version=4.0.0.0) dll!但是这两个 apache nms dll 是针对 .Net 4.0 的。

最佳答案

我认为this guy和你一样的问题。

You're targeting the Client Profile, which doesn't include the Web assemblies. Go into Project > Properties > Application and change Target Framework to ".NET Framework 4".

关于c# - Apache Active MQ .Net 客户端 (Apache NMS) 和 Visual Studio 2010 C# Express,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9582383/

相关文章:

c# - 有没有办法检查 C# 中特定值的类属性

c# - 如何使用 textfieldParser 编辑 CSV 文件?

c++ - 为什么用 std::forward 禁用模板参数推导?

c++ - 我如何创建一个可以给我 C4251 警告的类

apache - 成功故障转移后切换回主远程代理

javascript - 从 JSON 属性中删除双引号

c# - 追加到新行不会去新行

c - 如何在 C 中实现类似 nasm 的结构?

java - 配置ActiveMQ负载均衡和重连

java - ActiveMQ 上的异常 : org. mule.module.launcher.DeploymentStartException : ClassNotFoundException: org. apache.activemq.ActiveMQConnectionFactory