使Servicestack在Monodroid上工作 [英] Getting servicestack working on monodroid
问题描述
我试图在一个新的monodroid项目中引用servicestack dll,但出现构建错误.
I'm trying to reference the servicestack dlls in a new monodroid project and I'm getting build errors.
我从这里抓取了dll:
I grabbed the dlls from here:
https://github.com/ServiceStack/ServiceStack/tree/master/release/latest/MonoDroid
我得到了错误
/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets:警告:发现以下各项之间存在冲突:"mscorlib,Version = 2.0.5.0,Culture = neutral, PublicKeyToken = 7cec85d7bea7798e'和'mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'.使用'mscorlib,Version = 2.0.5.0,Culture = neutral,PublicKeyToken = 7cec85d7bea7798e'参考.
/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: Warning: Found a conflict between : 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' reference.
关于如何修复的任何建议吗?
Any advice on how to fix?
推荐答案
ServiceStack.Text.Android
中的最新签入破坏了该版本.但是,很容易修复.
The latest check-in in ServiceStack.Text.Android
has broken the build. However it is easy to fix.
检出ServiceStack
和ServiceStack.Text
.
打开ServiceStack.Text.Android
项目,然后在Common
文件夹中添加指向文件ServiceStack.Text\src\ServiceStack.Text\Common\DeserializeKeyValuePair.cs
的链接.生成ServiceStack.Text.Android
并生成ServiceStack Android解决方案.现在,您应该拥有ServiceStack\src\ServiceStack.Common.Android\bin\Debug
和ServiceStack\src\ServiceStack.Common.Android\bin\Release
中所需的所有文件.
Open up the ServiceStack.Text.Android
project, then add a link in the Common
folder to the file ServiceStack.Text\src\ServiceStack.Text\Common\DeserializeKeyValuePair.cs
. Build ServiceStack.Text.Android
and build the ServiceStack Android solution. Now you should have all the files needed in ServiceStack\src\ServiceStack.Common.Android\bin\Debug
and ServiceStack\src\ServiceStack.Common.Android\bin\Release
.
我也将它们放在我的Dropbox上,可在此处下载:
I have also put them up on my Dropbox for download here:
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Common.dll
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Interfaces.dll
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Text.dll
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Common.dll
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Interfaces.dll
- https://dl.dropbox.com/u/2991343/ServiceStack.Android/ServiceStack.Text.dll
我对托管文件不承担任何责任!
I do not take any responsibility for the hosted files!
将修复推送到我的fork: https://github.com/Cheesebaron/ServiceStack.Text 并创建提取请求: https://github.com/ServiceStack/ServiceStack.Text/pull/237
Pushed fix to my fork: https://github.com/Cheesebaron/ServiceStack.Text and created a Pull request: https://github.com/ServiceStack/ServiceStack.Text/pull/237
这篇关于使Servicestack在Monodroid上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!