EFI boot application in C#
This sample is a EFI boot application written in C# that displays Hello World. It runs without an OS, on x64 bare metal hardware.
Building the program
Refer to the general instructions at the root of the repo.
Booting the generated program
build.cmd should produce a BOOTX64.EFI file in the current directory. There are multiple ways to run this. QEMU with an EFI firmware should work. I use Hyper-V.
build.cmd vhd will produce a VHDX file for you that you can run on Hyper-V directly (it prompts for elevation, so don't be surprised). You need to create a new Gen 2 virtual machine in Hyper-V and attach the generated disk. Make sure to turn off Secure boot in the virtual machine: the EFI image is not signed.