나는 UWP App in order to receive messages from an Edge Extension를 구성하고, 일부 외부 구성을 사용하여 이러한 메시지에 답을하고 싶습니다 : 나는 Windows Credentials Vault을 사용하려고하지만, 전혀 가시성, 그것을 (the UWP App seems running in a SandBox)에 액세스하는 것은 불가능 보인다 Windows 자격 정보 저장소).
내 질문은 : 수동으로 구성을 저장소에 배포하지 않고 UWP 응용 프로그램을 구성하는 방법이 있습니까? 너무 많은
감사합니다,
다니엘구성 UWP 기본 Messagging 앱
2
A
답변
0
이 최선의 선택 인 경우 나도 몰라, but an UWP app can read a file from the local storage.
설치가 완료된 후 로컬 저장소 디렉토리 (% USERPROFILE % \ AppData \ Local \ Packages \\ LocalState)에 구성 파일을 작성했으며 다음 코드를 사용하여 UWP 앱에서 액세스 할 수있었습니다 :
Windows.Storage.StorageFolder storageFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
Windows.Storage.StorageFile configFile = await storageFolder.GetFileAsync("config");
String configContent = await Windows.Storage.FileIO.ReadTextAsync(configFile);
//configContent now contains the config info