Calling VoiceCommandDefinitionManager stops thread execution

I'm completely at a loss. When I call either:

var a = VoiceCommandDefinitionManager.InstalledCommandDefinitions;

      

OR

await Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager
    .InstallCommandDefinitionsFromStorageFileAsync( storageFile );

      

Thread execution ends within any call.

For example, in the following method, nothing happens after calling InstallCommandDefinitionsFromStorageFilesAsync. No exception, no record lines, no call made after calling this method.

private async void RegisterVoiceCommands()
{
    var storageFile =
        await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync( new Uri( "ms-appx:///VoiceCommandDefinition.xml" ) );
    try
    {
        await Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync( storageFile );

        Debug.WriteLine( "Voice Commands Registered" );
    }
    catch ( Exception ex )
    {
        Debug.WriteLine( ex );
    }
}

      

Does anyone have any ideas? This was used for technical inspection.

ENVIRONMENT: Win 10 Enterprise VS2015 Enterprise

+3


source to share


1 answer


It so happens that in my case this is a problem with the car. The project works correctly in all the other boxes I've tried it in. Bad setup I think.



0


source







All Articles