Skip to content

codingame_tools.language.languages.csharp

csharp

CgCSharpLanguage: CgLanguage for CodinGame's "C#"--extension and toolchain fragment only; local execution and contribution-create stub generation aren't implemented yet.

CgCSharpLanguage

CgCSharpLanguage()

Bases: CgLanguage

Source code in codingame_tools/language/languages/csharp.py
14
15
def __init__(self) -> None:
    super().__init__("C#")

toolchain_fragment property

toolchain_fragment

Installs nothing itself: .NET is the dotnet8 subsystem, shared with F# and VB.NET -- CodinGame runs all three on one runtime, so an image with several must not carry it twice.

Measured there as .NET 8.0.8 with DOTNET_ROOT=/opt/coderunner/dotnet/sdk prepended to PATH, which is the same per-language activation this fragment performs.

-unsafe matches CodinGame's published compile flag.