CMake supports C# using VS generator with the project files in line with .Net Framework projects. .Net also has .Net Project SDKs which enables building and running the projects on multiple platforms using .Net CLI.
Currently, CMake doesn’t support generating SDK-style projects for C#. CMake MR 6634 is focused on converting project style to use .Net Project SDK, but is limited to VS generator.
To support C# cross-platform, I propose the following:
- Introduce a new language
- CMake will validate the toolset for
dotnetusing .Net CLI which enables using with Ninja generator in addition to the current VS generator.
- Since .Net CLI is a command line, we can also write build.ninja where the first step would be generating SDK-style projects and second step would be
This will be backward-compatible as we wouldn’t be impacting the existing project generation using