0
我想弄清楚这里可能会出现什么问题。当我通过Visual Studio运行下面的代码时,与调试器连接时,所有工作都应该如此。但是,当我运行没有任何连接到Visual Studio的应用程序时,应用程序立即崩溃。当没有连接到调试器时FolderPicker崩溃
是否有我缺少的东西 - 我已经对我的应用程序中的延续进行了必要的更改,并且所有内容都按预期工作。只是当我离开Visual Studio时。
FolderPicker folderPicker = new FolderPicker();
folderPicker.ContinuationData["Operation"] = "DownloadFile";
folderPicker.SuggestedStartLocation = PickerLocationId.Downloads;
folderPicker.PickFolderAndContinue();