- Install
Visual Studio 2022in your computer. If you don't have it installed, click here. - Start the
Visual Studio Installerthrough your Windows Search. After that, the Installer window appears. - Install two packages
Visual Studio Community 2022(VS IDE) andDesktop development with C++(Build Tool).
-
Download 2 files
SDL2.Compiler.zipandSDL2.Template.zipfrom the release page. -
Extract the zipped file
SDL2.Compiler.zipto yourC:\folder. -
Copy the
SDL2.Template.zipfile to%USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplatesdirectory.
- Start
Visual Studio 2022. - Click on
Create a new project. - In the right sidebar, select
SDL2 Templateand clickNext. - Change your project's name or location as you wish and click
Create. - From the top sidebar, click on
Local Windows Debuggerto execute the project.