问题描述
我正在开发一个必须与UWP应用程序集成的Windows运行时组件,以便每当UWP应用程序崩溃时,此组件都会收集崩溃转储并发送它到我的服务器。我发现Windows使应用程序崩溃
转储到AC文件夹(在应用程序包文件夹内部,例如"C:\ Users \< username> \ AppData \ Local \ Packages \ nineaedf49e -2a96-4c91-85d9-6c67fbc35bc4_nne1hs42kmvyg\AC\")。
I am developing a Windows Runtime Component which has to be integrated with a UWP Application so that whenever the UWP app crashes this component collects the crash dump and sends it to my server. I have found out that Windows keeps the application crash dump into the AC folder (inside application package folder e.g. "C:\Users\<username>\AppData\Local\Packages\9aedf49e-2a96-4c91-85d9-6c67fbc35bc4_nne1hs42kmvyg\AC\").
我的问题是我无法像任何其他本地文件夹一样访问此AC文件夹。
My issue here is that I am not able to access this AC folder like any other local folder.
请建议任何可能的解决方案来访问AC文件夹。
Kindly suggest any possible solution to access the AC folder.
推荐答案
尝试此解决方案
var parentDirectory = Directory.GetParent(ApplicationData.Current.LocalFolder.Path).FullName;
StorageFolder folder = await StorageFolder.GetFolderFromPathAsync(Path.Combine(parentDirectory, "AC"));
这篇关于[UWP] [C ++]如何从UWP Application访问AC文件夹到App包文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!