Can't generate .sln project for GDExtension project

Godot Version

v4.4.1.stable.official [49a5bc7b6]

Question

I’m following the instructions on this page for creating a .sln file for a GDExtension I’m developing.

I’m supplying the recommended command line

scons platform=windows vsproj=yes dev_build=yes

Most of the build went well, but I’m unable to generate the solution file. I’m getting the error:

WARNING: Unknown SCons variables were passed and will be ignored:
    vsproj=yes

I’m using a fairly recent version of scons:

scons --version
SCons by Steven Knight et al.:
        SCons: v4.6.0.e5eef322a4a727b96358a436dca46e8085ac8692, Sun, 19 Nov 2023 17:22:20 -0700, by bdbaddog on M1Dog2021

What do I need to do to create the .sln file?

This seems like it may be your issue:

Relevant bit: “godot-cpp does not support generating a Visual Studio solution. Only Godot’s core repository does.”

1 Like