Hi, I am using the Desktop Bridge (Windows Application Packaging Project) to publish my Windows Form application to windows store. I added this in the wap-projects Package.appxmanifest:
<Package xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" ...>
...
<Applications>
<Application ...>
...
<Extensions>
<uap5:Extension Category="windows.startupTask">
<uap5:StartupTask
TaskId="HelloCentennialTask"
Enabled="true"
DisplayName="Test startup" />
</uap5:Extension>
</Extensions>
</Application>
</Applications>
Then I was supposed to use this line:
var startupTask = await Windows.ApplicationModel.StartupTask.GetAsync("HelloCentennialTask");
But the namespace Windows.ApplicationModel is not available in this project type. It seem to be available only in a "Universal Windows" project.