我目前正在尝试使用 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/