Tested versions
Godot v4.3.beta3.mono
System information
Godot v4.3.beta3.mono - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA; 31.0.15.4680) - 12th Gen Intel(R) Core(TM) i7-12650H (16 Threads)
Issue description
When running an instance with the dedicated_server feature tag, it runs headless as expected. However, the C# GODOT_SERVER preprocessor define does not work. I would expect that to be enabled.
Steps to reproduce
- Create C# project
- Configure run instance with
dedicated_server feature tag
- Run some code with
#if GODOT_SERVER
- Observe that code is never reached
Minimal reproduction project (MRP)

preprocessorrepro.zip