Apache ActiveMQ .Net客户端(Apache NMS)和Visual Studio 2010 C# Express

3
I am currently attempting to test a C# client utilizing the NMS API .dlls to communicate with the Apache ActiveMQ Message Broker. I am using Visual Studio C# 2010 Express for development and my target framework is 4.0 Client Profile. However, I am encountering conflicts when trying to build the project which I am unsure how to resolve.
My settings are as follows: - .Net Target Framework 4.0 Client Profile - Apache.nms-1.5.0.dll - Apache.nms.ActiveMQ-1.5.2.dll
When trying to build the client, I receive the following conflict (which has been translated from German):
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准备的。


1
你需要针对 .Net 4.0 完整档案进行开发。 - clearpath
1个回答

2

我认为这个人和你有相同的问题。

你正在针对客户端配置文件进行目标设置,其中不包括Web组件。进入项目 > 属性 > 应用程序并将目标框架更改为“ .NET Framework 4”。


1
谢谢,这很有帮助并且有效!将目标框架从4个客户端配置更改为只是4就可以了。现在我可以构建项目了。 - fziska

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接