C# Preprocessor Directives

Hi, I was wondering if there is any way to add preprocessor directives to the C# Script component in grasshopper? I believe it can be done in Rhino 6, but not sure for Rhino 5. Thanks

Hi @Antonio_Cersosimo,

Not that I know of. Just curious, why do you need this feature?

– Dale

1 Like

The using block was made editable recently-ish, so anything which comes after some using statements but before the namespace/class identifiers is now up for grabs.

This will not be possible on earlier versions.

1 Like

Well I was trying to avoid removing preprocessor directives from older code, also I was trying to avoid using visual studio for this, I want to access the code directly from grasshopper, testing is just faster.