Search code examples
c#uwpwin-universal-appdesktop-bridge

StartupTask class is not recognized


I'm trying to get my Centennial application to autostart on logon. According to this post that can be done. But then to disable it programmatically I'd need to use the Windows.ApplicationModel.StartupTask class and Visual Studio refuses to recognize it. So how is that class used?


Solution

  • You need to add a reference to the Desktop Extension SDK.

    enter image description here