79727258

Date: 2025-08-06 12:20:01
Score: 0.5
Natty:
Report link

Building from commandline, add -ubtargs"-MyArgument"
In Target.cs, read them like so, for example :

[CommandLine(Prefix = "-MyArgument")] 
public bool MyArgument = false;

and then make it a definition like this:

ProjectDefinitions.Add(MyArgument ? "MYARG=1" : "MYARG=0");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: karmington