C#C
C#2y ago
70 replies
Prozaks

✅ dotnet build and preprocessor symbol definition

Hi, anyone knows how to define a preprocessor symbol when running dotnet build? I want to define a symbol for linux, i tried these things i found online: /p:LINUX=true, -p:LINUX=true, /p:LINUX but it seems to just ignore it and compile as if it wasn't defined
Was this page helpful?