Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created July 2, 2016 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/a2670e42df7bed99ef7069a91f2bf566 to your computer and use it in GitHub Desktop.
Save flushpot1125/a2670e42df7bed99ef7069a91f2bf566 to your computer and use it in GitHub Desktop.
try
{
var storageFile =
await Windows.Storage.StorageFile
.GetFileFromApplicationUriAsync(new Uri("ms-appx:///vcd.xml"));
await Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager
.InstallCommandDefinitionsFromStorageFileAsync(storageFile);
Debug.WriteLine("VCD installed");
}
catch
{
Debug.WriteLine("VCD installation failed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment