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 |