Solution-wide #define

前端 未结 11 2304
予麋鹿
予麋鹿 2020-12-05 09:29

Is there a way to globally declare a #define?

Like I want to have a file that has for instance,

#define MONO

and I want all source-

11条回答
  •  我在风中等你
    2020-12-05 09:44

    Create a new solution configuration in Configuration Manager and make sure that the box is checked to create new project configurations as well. And then in the Build properties of each project enter MONO into the Conditional compilation symbols box.

提交回复
热议问题