我得到NotImplementedException尝试在F#交互中使用PCLStorage.FileSystem.Current
。F#交互式抛出PCLStorage中的NotImplementedException
我下载PCLStorage用的NuGet,右击的参考,并点击“发送到F#互动”
我与VS2015更新1的工作,并作为建议我重新安装的软件包in this answer
如何让PCLStorage在F#交互中工作?
--> Referenced 'C:\Users\amade\Documents\GitHub\audioExperiments\src\Audio\packages\PCLStorage.1.0.2\lib\portable-net45+wp8+wpa81+win8+monoandroid+monotouch+Xamarin.iOS+Xamarin.Mac\PCLStorage.dll'
> open PCLStorage;;
> PCLStorage.FileSystem.Current;;
> System.NotImplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the PCLStorage NuGet package from your main application project in order to reference the platform-specific implementation.
at PCLStorage.FileSystem.get_Current()
at <StartupCode$FSI_0017>[email protected]()
Stopped due to error
鉴于您的F#交互式运行在完整版本的.NET中,您需要编译一个与之匹配的库。 –