I know that we can declare Preprocessor values in the properties settings of any app.
I can declare two or three macros in the Conditional compilation symbols, but what if I want to define 25 values here? Is there any other way, like a .cs file where I can link all my definitions here.
You can manually edit the .csproj file using Visual Studio's text editor.
DefineConstants
elements and edit your defined symbols there directly. The settings for Debug and Release configurations are in separate PropertyGroup
elements.