slice2cs(1)
π slice2cs(1) β the Slice β‘οΈ C# compiler, bestie edition π
Okay so real talk: this page is from the General Commands Manual, and the command we're hyping up is slice2cs β the Slice to C# compiler. Grab a strawberry π, sit down, and let's get into it.
β¨ NAME β¨
slice2cs β the Slice to C# compiler. That's it, that's the name, periodt. π
π SYNOPSIS π
slice2swift [options] [files]
Bestie. I know. I KNOW. π The synopsis says slice2swift, not slice2cs. I'm not editing it, I'm not "fixing" it, I'm just showing you the receipt exactly as it was handed to me. It's giving typo energy, and we're all just living in it. π Anyway: options, then files. That's the shape of it.
π¦ DESCRIPTION π¦
So slice2swift compiles Slice files to Swift. During this compilation the macro __SLICE2SWIFT__ is defined. Yes, again β this is the Swift one being described, on the C# page. I am simply the messenger and the messenger is sipping her drink. π§
The full documentation for slice2swift is available online at:
https://doc.zeroc.com/ice/latest/language-mappings/swift-mapping/client-side-slice-to-swift-mapping/slice2swift-command-line-options
Lowkey a whole novel over there, but it's the official source so go off. β¨
π OPTIONS π
Alright, the main event. Every single flag, no skips, no "eh you get the idea". You get the idea and the flag. π«Ά
-h,--helpβ shows you a help message. Your little rescue blanket when you forget everything. πΈ-v,--versionβ prints out the compiler version. Vibe check the build. β-DNAMEβ defines the preprocessor symbolNAME. Manifesting it into existence. β¨-DNAME=DEFβ defines the preprocessor symbolNAMEand gives it the valueDEF. Now it's got lore. π-UNAMEβ undefines the preprocessor symbolNAME. Unmanifesting. Not every symbol gets to stay. π-IDIRβ adds the directoryDIRto the search path for#includedirectives. It's the "where do I look for my friends" option. π«Ά-Eβ prints the preprocessor output onstdout. Just the preprocessed tea, no compiling, no code gen. β--output-dir DIRβ drops the generated files into directoryDIR. Giving your files a home. π-d,--debugβ prints debug information showing the operation of the Slice parser. Not me peeking behind the curtain to watch the parser work π--dependβ prints dependency information to standard output by default, or to the file named by the--depend-fileoption. Heads up bestie: no code is generated when this option is specified.--depend-xmlβ prints dependency information in XML format, to standard output by default, or to the file named by the--depend-fileoption. Also: no code is generated when this option is specified. Same rules, fancier format. π--depend-file FILEβ sends the dependency information into the specified file. Which format you get depends on whether--dependor--depend-xmlis also specified. π--validateβ checks that the command-line options you gave are correct, and does not generate any code. The "am I doing this right" button. β
Reminder to my girlies:--depend,--depend-xmland--validateall mean no code gets generated. If you're sitting there wondering where your output files went... that's why. π
π₯ SEE ALSO π₯
The whole Slice compiler friend group, all together, all iconic:
slice2cpp(1)slice2cs(1)slice2java(1)slice2js(1)slice2matlab(1)slice2objc(1)slice2php(1)slice2py(1)slice2rb(1)
Squad goals fr fr. π
And that's the whole page, babes. This was slice2cs(1) from the General Commands Manual β shoutout to the manpage itself for carrying all this info, and to you for reading the entire thing instead of just scrolling to the flags. Main character behavior. No cap. πβ¨π
π¦ where this page comes from
- arch rolling: zeroc-ice 3.7.10-3 Β· GPL-2.0-only AND LicenseRef-ICE
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 Β· 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