Preprocessor directives across different files in C#

后端 未结 4 1664
我在风中等你
我在风中等你 2020-12-06 11:00

I know that I can use preprocessor directives in C# to enable/disable compilation of some part of code.

If I define a directive in the same file, it wor

4条回答
  •  攒了一身酷
    2020-12-06 11:32

    You can do it for the entire project from Project|Properties.

    Afaik there is no way to use include files in C# so for groups of files there is no easy solution.

提交回复
热议问题