After cloned the repo I tried to run the WPF and ran into
An unhandled exception of type 'System.Exception' occurred in WpfUIWithBackgroundTask.exe
Additional information: Element not found. (Exception from HRESULT: 0x80070490)
While BackgroundTaskRegistration.AllTasks.Select
public List<string> GetRegisteredTasks()
{
return BackgroundTaskRegistration.AllTasks.Select(t => t.Value.Name).ToList<string>();
}
I'm using VS2019 and had 1803/17134 Windows SDK installed.
After cloned the repo I tried to run the WPF and ran into
While
BackgroundTaskRegistration.AllTasks.Select
I'm using VS2019 and had 1803/17134 Windows SDK installed.