Windows 8 BackgroundTask Problem.
If you exited program with code 1 (0x1) when you run backgrond task,
You should add the background task project into the referece of original project.
"~~~ has exited with code 1 (0x1)"
related code about BackgroundTask
await BackgroundExecutionManager.RequestAccessAsync();
var builder = new BackgroundTaskBuilder();
builder.Name = "SampleBackgroundTask";
builder.TaskEntryPoint = "Tasks.SampleBackgroundTask";
builder.SetTrigger(new TimeTrigger(15, false));
BackgroundTaskRegistration task = builder.Register();
TAG 0x1,
BackgoundTask,
BackgroundExecutionManager,
code 1,
Crash,
Exit,
IBackgroundTaskInstance,
Package.appxmanifest,
reference,
RequestAccessAsync,
Run,
windows 8,
Windows8
댓글을 달아 주세요