我的
Windows Phone 7项目中有一个zip文件.我已将Build Action to Content和Copy to output目录设置为Always. zip文件包含文件夹结构.我希望这完全复制,因为它在我的电话项目中.我正在使用SharpZipLib.这是代码: –
Stream stremInfo = Application.GetResourceStream(new Uri("xip.zip",UriKind.Relative)).Stream; new FastZip(). ExtractZip(stremInfo,"",FastZip.Overwrite.Always,null,true,true);
但是,在调用ExractZip时出现错误.我得到的例外是“MethodAccessException”.无法调用GetFullPath().任何人都可以让我知道我错过了什么?我该怎么做才能避免它?