Skip to content

Engine → Scripting

managed_build.h

Building managed projects at runtime. managed_build_runner spawns dotnet build through core::process on a job, parses the MSBuild diagnostics and posts the report to the main thread with core::jobs::post_to_main_thread; the caller drains that queue (the engine does so before FRAME_BEGIN) and the editor shows the diagnostics. Lives here so conjure_editor --headless can rebuild too.

Structs

File Description
build_diagnostic One path(line,col): error|warning CSxxxx: message line of the build output.
build_report
build_request Everything a build needs. Property values are UTF-8 and literal: command_line escapes them with msbuild_escape(), so a path holding '%', ';', ',' or '"' reaches MSBuild as itself.
managed_build_runner::shared_state

Classes

File Description
managed_build_runner

Functions

Public

msbuild_escape

[[nodiscard]] CONJURE_API std::string msbuild_escape(
    std::string_view value);

value with the characters MSBuild treats specially in a command-line property value written as the %XX escapes MSBuild decodes: '%' (which starts an escape itself), ';' and ',' (which separate properties) and '"' (which quotes). dotnet hands -o to MSBuild as a property too. Every other byte, UTF-8 included, is kept.