I have some code that I want to run in Visual Studio's Immediate Window. It depends on a preprocessor directive. When I try to #Define
it in there, I get error CS1525: Invalid expression term ''
. My currently selected build configuration changes nothing here.
How can I run a static method, foo.bar.MyMethod(12345)
, in the Immediate Window if I need to #Define Test
first?