Skip to content
Branch: master
Find file History
Latest commit e5f27e4 Mar 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. Add screenshot Mar 25, 2019
build.cmd Add UEFI sample Mar 23, 2019

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

Running 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.

Running 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.

You can’t perform that action at this time.