2


Je voudrais configurer un UWP App in order to receive messages from an Edge Extension, et pour répondre à ces messages en utilisant des configurations externes: J'ai essayé d'utiliser le Windows Credentials Vault, mais il semble impossible d'y accéder (the UWP App seems running in a SandBox), sans visibilité le coffre-fort Windows Credential).
Donc ma question est: est-il possible de configurer manuellement une application UWP sans déployer la configuration dans le magasin?

Merci beaucoup,
DanieleConfigurer UWP natif Messagging App

Répondre

0

Je ne sais pas si cela est la meilleure option, but an UWP app can read a file from the local storage. Donc, après l'installation, j'ai écrit un fichier de configuration dans le répertoire de stockage local (% USERPROFILE% \ AppData \ Local \ Packages \ LocalState), et j'ai pu y accéder depuis l'application UWP en utilisant le code suivant :

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