I have been looking at building in a shutdown and restart feature within my universal application and I have taken this from the IoTCoreDefaultApp as this has button that do exactly this.
The latest build 10.0.10586 has this application built in and it works, however I am unable to build and compile the sample code for this app. I have retargeted the SDK and fixed references so it compiles but when i try to deploy to my Pi it complains in the package manifest about:
<iot:Capability Name="systemManagement" />
<iot:Capability Name="lowLevelDevices" />
Can anyone help? My code runs as i can see this using breakpoints but nothing happens and i suspect the application doesn't have permission to shutdown or restart.