0

I am trying to compile jabber-net in Xamarin Studio so I can use it in a Xamarin.iOS app. From other searches I have done I am told I need to recompile the source.

From command line I can build the dll, but I have no idea what version of .NET/Mono this is targeting. This makes a jabber-net.dll and a jabber-net.dll.mdb. If I add jabber-net.dll to my project, add the reqiured

using jabber.client;
...
...
...
JabberClient client = new JabberClient ();

and try to compile I am told.

/Users/brad/Projects/XMPPChat/XMPPChat/AppDelegate.cs(37,47): error CS0584: Internal compiler error: Could not import type jabber.client.JabberClient' fromjabber-net, Version=2.1.0.702, Culture=neutral, PublicKeyToken=924c5b18328d6f09' /Users/brad/Projects/XMPPChat/XMPPChat/AppDelegate.cs(37,38): error CS0584: Internal compiler error: Could not import type jabber.client.JabberClient' fromjabber-net, Version=2.1.0.702, Culture=neutral, PublicKeyToken=924c5b18328d6f09' /Users/brad/Projects/XMPPChat/XMPPChat/AppDelegate.cs(37,38): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement

I got no idea what is going on here... When I try to open any of the .sln's (or include any of the existing projects, even the mono specific project) that came with jabber-net into my solution it will either hang trying to convert the project, or will tell me

The file '/Users/brad/Projects/XMPPChat/JabberNet-2.1.0.710/mono-jabber-net.csproj' could not be loaded.

and will spit out this error.

Any idea where to go from here? :|

4

1 回答 1

0

从头开始一个新的解决方案,并添加.cs除测试和示例目录中的文件之外的所有文件。还要确保您在某处没有旧版本的 .dll。

于 2013-07-08T17:04:36.977 回答