Last active
October 24, 2018 19:58
-
-
Save StefanWickDev/097ec030d169eaeee6fb6be69cff6158 to your computer and use it in GitHub Desktop.
Get started with 'allowElevation' capability in RS5 (hello world)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install Windows insider SDK 17744 (or later) on a computer running Insider build 17744 (or later) | |
2. In VS2017 create a new C# Console app (or any desktop type application) | |
3. Optional: add two lines of code in Main() | |
Console.WriteLine("Hello World Elevated"); | |
Console.ReadLine(); | |
4. Add an Application Manifest file to the project (app.manifest) | |
5. In that file change requestedExecutionLevel from 'asInvoker' 'highestAvailable'. | |
6. Add a Windows Application Packaging Project to the solution | |
7. Set target and min version to 17744 (or later) | |
8. In the packaging project add a reference to the console application project | |
9. Set packaging project as the startup project for the solution | |
10. Edit Package.appxmanifest file | |
11. Add <rescap:Capability Name="allowElevation" /> in the <Capabilities> section | |
12. Hit F5 | |
For a complete tutorial, take a look here: https://stefanwick.com/2018/10/01/app-elevation-samples-part-1/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a complete tutorial, take a look here