【发布时间】:2015-05-25 11:12:21
【问题描述】:
我正在尝试使用这个 repo 为 WP 8.0 编译 OpenSSL。 https://github.com/Microsoft/openssl
我是怎么做的:
-
在源码根树中执行以下脚本。
ms\do_vsprojects.bat
-
已创建开放式 Visual Studio 解决方案
vsout\openssl.sln
运行单元测试应用项目
ms\do_packwinapp.bat
最后我从路径"\openssl\vsout\package\bin\Phone\8.0\Dll\Unicode\Release\arm" 得到了两个dll ssleay32.dll 和libeay32.dll。我正在尝试将此 dll 添加到我的 WP8.0 项目中,但出现错误:
"A reference to a higher version or incompatible assembly cannot be added to the project."
我做错了什么?
【问题讨论】:
-
OpenSSL 目前不能为 Windows Phone 或 Windows RT 编译。或者也许更好的表达方式是“它不受官方支持”。例如,参见Where is sockaddr_in in Windows RT?。我有一堆补丁,但是很痛苦。
-
Protip:你不能简单地编译随机应用程序,让它们在 windows phone 平台上运行。
标签: c# windows-phone-8 dll visual-studio-2013 openssl