Skip to content

dedicated_server feature tag does not enable GODOT_SERVER preprocessor define #94414

@warent

Description

@warent

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

  1. Create C# project
  2. Configure run instance with dedicated_server feature tag
  3. Run some code with #if GODOT_SERVER
  4. Observe that code is never reached

Minimal reproduction project (MRP)

image
preprocessorrepro.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions