gpt4 book ai didi

.net - 为 WP7 构建一个 .NET dll

转载 作者:行者123 更新时间:2023-12-03 23:46:06 24 4
gpt4 key购买 nike

如何将 C# dll 移植到 WP7?

我在桌面上成功构建了 .dll 源代码,但是当我尝试在 WP7 项目中引用 dll 时,出现以下错误:

Reference cannot be added to c:\path\to\my.dll because it was not built using the Windows Phone runtime. Windows Phone projects will work only with Windows Phone assemblies.



有没有使用 Windows Phone 运行时构建它的简单方法?

最佳答案

创建 Windows Phone Library项目,将源代码复制到其中并解决出现的所有错误。你可以引用这个 dll来自 Windows Phone项目

关于.net - 为 WP7 构建一个 .NET dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9484359/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com