问题
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?
回答1:
You need to add a reference to the Desktop Extension SDK.
来源:https://stackoverflow.com/questions/45849937/startuptask-class-is-not-recognized