PCLStorage在Windows Phone 8的 [英] PCLStorage in Windows Phone 8

查看:287
本文介绍了PCLStorage在Windows Phone 8的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PCLStorage了于Win8 / WP8项目我的工作。我使用它PCL本身,并已在我的Win8,WP8和PCL项目引用。一切都在Win8中伟大的工作。

I'm using PCLStorage for a Win8/Wp8 project I'm working on. I'm using it within a PCL itself, and have it referenced in my Win8, Wp8 and PCL projects. Everything is working great in Win8.

在WP8但是,一旦我打我的PCL为它采用PCLStorage存储,我得到一个 NotImpmlementedException 当我打电话 FileSystem.Current;

In Wp8 however, once I hit my PCL for storage which uses PCLStorage, I'm getting a NotImpmlementedException when I call FileSystem.Current;

这功能在本次大会的便携式版本中实现。您应该从主应用程序的项目,以引用特定于平台的实现引用PCLStorage的NuGet包。

"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."

但就像我说的,我有PCLStorage的NuGet包在我的WP8项目中引用和PCL项目以同样的方式我在Win8中的项目做的。

But like I said, I have the PCLStorage NuGet package referenced in my Wp8 project AND the PCL project the same way I do in my Win8 project.

任何想法是怎么回事?

(我也应该注意到,PCLStorage工作正常,如果我在一个新的WP8项目中使用它)

(I should also note that PCLStorage is working fine if I use it in a new Wp8 project)

推荐答案

尝试从所有项目卸载PCLStorage的NuGet软件包,然后在所有的人都重新安装它。

Try uninstalling the PCLStorage NuGet package from all projects and then reinstalling it in all of them.

如果还是不行,请尝试检查在WP8项目的PCLStorage的DLL引用,并确保他们是从包装中的WP8文件夹来了。

If it still doesn't work, try checking the references to the PCLStorage DLLs in the WP8 project and make sure they are coming from the wp8 folder in the package.

如果没有导致任何地方,试着从你的PCL的PCL存储设置的DLL本地副本中的引用错误的。如果你有这样做,它是一个需要修复的问题,所以请提交错误吧。

If that doesn't lead anywhere, try setting copy local to false in the references from your PCL to the PCL Storage DLLs. If you have to do that it's an issue that needs to be fixed, so please file a bug for it.

修改:有臭虫VS 2013更新2 RC可能导致此问题。这个包的NuGet应该是,如果你在Windows Phone应用程序引用它来解决这个问题: SuppressPackagingPclFacades 。或者设置复制本地为false,从PCL库到PCL存储组件也应该解决这个问题的参考。

EDIT: There is a bug in VS 2013 Update 2 RC that can cause this problem. This NuGet package is supposed to fix the issue if you reference it in your Windows Phone app: SuppressPackagingPclFacades. Alternatively setting Copy Local to false for the reference from your PCL library to the PCL Storage assemblies should also fix the issue.

这篇关于PCLStorage在Windows Phone 8的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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