slice2cs(1)
π slice2cs β the Slice to C# compiler π
okay bestie, gather round, because this is the manual page for slice2cs(1) from the General Commands Manual, and she is literally the moment. β¨
πΈ NAME πΈ
slice2cs β the Slice to C# compiler. that's it, that's the girl. π
π SYNOPSIS π
slice2cs [options] [files]
π¦ DESCRIPTION π¦
So here's the tea: slice2cs compiles Slice files into C#. no cap, that's the whole job. π«Ά
and bestie, listen β the macro __SLICE2CS__ gets defined while this compilation is happening. so if your Slice files are checking for it, she's there. iconic behavior. π
The full documentation for slice2cs lives online at:
https://doc.zeroc.com/ice/3.7/language-mappings/c-sharp-mapping/client-side-slice-to-c-sharp-mapping/slice2cs-command-line-options
like, go read it if you want the deep lore. π
β¨ OPTIONS β¨
every single one, no skipping, no summarizing, we respect the flag list in this house π π
-h,--helpβ shows you a help message. the classic "what do I even do here" button.-v,--versionβ prints the compiler version. vibe check on which build you're running. β-DNAMEβ defines the preprocessor symbolNAME. boom, she exists now.-DNAME=DEFβ defines the preprocessor symbolNAMEand gives it the valueDEF. now she has lore.-UNAMEβ undefines the preprocessor symbolNAME. not me erasing her entire existence π-IDIRβ adds the directoryDIRto the search path for#includedirectives. she's out here networking π-Eβ prints the preprocessor output on stdout. raw, unfiltered, pre-processed. π--output-dir DIRβ puts the generated files into directoryDIR. everything goes in this folder, periodt.-d,--debugβ prints debug information showing the operation of the Slice parser. she's telling you everything she's doing, like a group chat at 2am π--dependβ prints dependency information to standard output by default, or to the file specified by the--depend-fileoption. and listen: no code is generated when this option is specified. zero. none. just the deps.--depend-xmlβ same energy but the dependency information comes out in XML format, to standard output by default or to the file specified by--depend-file. and again, no code is generated when this option is specified. π§--depend-file FILEβ sends dependency information to the specified file. which format you get depends on whether--dependor--depend-xmlis also specified. they're a package deal, iykyk.--validateβ checks the command-line options you provided for correctness and does not generate any code. it's just a vibe check, no output. π--tieβ generates tie classes. slay. π--implβ generates sample implementation files. heads up bestie: this option will not overwrite an existing file. she's respectful like that. π--impl-tieβ generates sample implementation files using tie classes. and same rule: this option will not overwrite an existing file. π«Ά--checksum CLASSβ generates checksums for Slice definitions. math but make it fashion. β¨
fr fr, if you're reaching for--dependor--depend-xml, don't expect code out the other end. that's not a bug, that's the design, bestie. π
π SEE ALSO π
the whole sibling squad, go say hi:
slice2cpp(1)slice2java(1)slice2js(1)slice2matlab(1)slice2objc(1)slice2php(1)slice2py(1)slice2rb(1)slice2swift(1)
and that's the whole page, bestie! π«Ά this was slice2cs(1) from the General Commands Manual β you just read the entire thing, main character energy fr fr. go compile something gorgeous. πβ¨π
π¦ where this page comes from
- arch rolling: zeroc-ice 3.7.10-3 Β· GPL-2.0-only AND LicenseRef-ICE
- debian bookworm: zeroc-ice-compilers 3.7.8-2.1+b1 Β· GPL-2.0+exceptions
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 Β· GPL-2.0+exceptions
- ubuntu jammy: zeroc-ice-compilers 3.7.6-4ubuntu1 Β· GPL-2.0+exceptions
- ubuntu noble: zeroc-ice-compilers 3.7.10-2.1build1 Β· GPL-2.0+exceptions
- ubuntu questing: zeroc-ice-compilers 3.7.10-3.1
- ubuntu resolute: zeroc-ice-compilers 3.7.10-4build2 Β· GPL-2.0+exceptions
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms