当前位置: 代码迷 >> Windows Mobile >> 升级vs2013 update2后GetResourceStream用不了了,该如何解决
  详细解决方案

升级vs2013 update2后GetResourceStream用不了了,该如何解决

热度:65   发布时间:2016-04-25 07:09:30.0
升级vs2013 update2后GetResourceStream用不了了
我新建了一个Windows Phone 8.1 项目(不是Windows Phone 8.1 (Silverlight)项目),下面的 GetResourceStream 就提示没有定义了,我想加入using System.IO.IsolatedStorage; 但不行,后来在网上找了下才知道Windows Phone 8.1 项目没有了System.IO.IsolatedStorage,请问在Windows Phone 8.1 项目中有什么方法可以替代 App.GetResourceStream 这个吗?

           Stream rs = App.GetResourceStream(new Uri(“data/my.txt”, UriKind.Relative)).Stream;

------解决思路----------------------
windows.storage.applicationdata 试试