C# Programming
Published in

C# Programming

C# preprocessor directives for conditional compiling

How can we have dev-friendly environment-dependent compilation in C#?… thanks to preprocessor directives!

Let’s say you’re working on a big project with lots of other devs, and you have a professional delivery system with tests, staging and releases. All of these “versions” of your product probably run in different environments, with their own set of env variables and symbols — for example, you surely have a “dev database” and a “prod(uction) database” that require…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mina Pêcheux

Mina Pêcheux

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)