从Windows Phone 8应用程序使用F#可移植库 [英] Using a F# portable library from a Windows Phone 8 app

查看:71
本文介绍了从Windows Phone 8应用程序使用F#可移植库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Visual Studio 2013在Windows Phone 8应用程序中使用便携式F#库,但是编译器无法解析对FSharp.Core.dll版本3.3.1.0的依赖关系. 我试图手动从以下位置添加对FSharp.Core.dll的引用 C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ FSharp.NETPortable. Windows Phone 8是否支持F#便携式库?

I´m trying to use a portable F# library in my Windows Phone 8 app using Visual Studio 2013 but the compiler cannot resolve dependency to the FSharp.Core.dll version 3.3.1.0. I have tried to manually add a reference to the FSharp.Core.dll from C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.NETPortable. Is F# portable library supported for Windows Phone 8?

推荐答案

您使用的是哪种便携式库?在VS2013中,您必须使用"Portable Profile(Legacy)"项目类型,该类型对应于Profile47.其他项目类型便携式配置文件"对应于配置文件7,它仅支持完整的.NET和Windows Store应用程序.令人困惑的是,在VS2012中,Profile47项目类型被命名为"Portable Profile",这就是VS2013称之为Profile7.您可以在此处看到F#在Windows Phone 8的可移植库中使用的示例.此处

What portable library type are you using? In VS2013, you have to use the "Portable Profile (Legacy)" project type, which corresponds to Profile47. The other project type, "Portable Profile", corresponds to Profile 7, which only supports full .NET and Windows Store apps. Confusingly, in VS2012 the Profile47 project type was named "Portable Profile", which is what VS2013 calls Profile7. You can see an example here of F# being used in a portable library with Windows Phone 8 here

这篇关于从Windows Phone 8应用程序使用F#可移植库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆