Step-by-step configuration to enable VS2022 to create UEFI .EFI executables
General | |||
Output Directory | $(SolutionDir)$(Platform)\$(Configuration)\ | $(SolutionDir)$(Platform)\$(Configuration)\ | $(SolutionDir)$(Platform)\$(Configuration)\ |
Intermediate Directory | $(Platform)\$(Configuration)\ | $(Platform)\$(Configuration)\ | $(Platform)\$(Configuration)\ |
Advanced | |||
Target File Extention | .EFI | .EXE | .EXE |
Character Set | Use Unicode Character Set | Use Unicode Character Set | Use Unicode Character Set |
Whole Program Optimization | No Whole Program Optimization | No Whole Program Optimization | No Whole Program Optimization |
C/C++\General | |||
SDL checks | No (/sdl-) | No (/sdl-) | No (/sdl-) |
C/C++\Preprocessor | |||
Preprocessor Definitions | _NO_CRT_STDIO_INLINE | _NO_CRT_STDIO_INLINE | |
C/C++\Code Generation | |||
Runtime Library | Multi-threaded (/MT) | Multi-threaded (/MT) | |
Security Check | Disable Security Check (/GS-) | Disable Security Check (/GS-) | |
Floating Point Model | Strict (fp:strict) | Strict (fp:strict) | |
Linker\General | |||
Output File | $(OutDir)$(TargetName)$(TargetExt) | $(OutDir)$(TargetName)$(TargetExt) | $(OutDir)$(TargetName)$(TargetExt) |
Additional Library Directories | $(SolutionDir)Lib | $(SolutionDir)Lib | $(SolutionDir)Lib |
Linker\Input | |||
Additional Dependencies | toroC64.lib;LibWin324UEFI.lib NOTE: uncheck Inherit from parent or project defaults, prevent from %AdditionalDependancies |
toroC64.lib;kernel32.lib | kernel32.lib;legacy_stdio_definitions.lib |
Ignore All Default Libraries | Yes (/NODEFAULTLIB) | Yes (/NODEFAULTLIB) | |
Linker\Manifest File | |||
Generate Manifest | No (/MANIFEST:NO) | No (/MANIFEST:NO) | |
Linker\System | |||
SubSystem | EFI Application (/SUBSYSTEM:EFI_APPLICATION) | Console (/SUBSYSTEM:CONSOLE) | Console (/SUBSYSTEM:CONSOLE) |
Linker\Advanced | |||
Entry Point | _cdeCRT0UefiShell | _cdeCRT0WinNT | |
Randomized Base Address | No (/DYNAMICBASE:NO) | ||
Data Execution Prevention (DEP) | No (/NXCOMPAT:NO) |
- Get and install Visual Studio:
https://github.com/KilianKegel/HowTo-setup-an-UEFI-Development-PC#install-visual-studio-2022 - Follow the screenshots below: