Using a F# portable library from a Windows Phone 8 app

此生再无相见时 提交于 2019-12-07 03:57:08

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/20503605/using-a-f-portable-library-from-a-windows-phone-8-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!