/MichalStrehovsky/zerosharp

MichalStrehovsky/zerosharp

zerosharp/README.md at master · MichalStrehovsky/zerosharp · GitHub

Permalink

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.

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.