Replies: 1 comment
-
Yes, there is a setting at CodeMaid->Options->Reorganizing->General->Perform reorganization when preprocessor conditional are present which you can change. It is set to ask (dialog prompt) by default but that may have been changed. We do check for some other pre-processor directives as well (e.g. Hope it helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a multi target project (incl. .NET 3.5, 4.8, 5.0). I successfully got rid of
#if
by handling conditional compilation within theDirectory.Build.targets
file. So files are named likeMyClass.Net35.cs
orMyClass.Net48.cs
, etc. but they do not contain any#if
directives anymore. Nonetheless, CodeMaid does somehow think they contain#if
and does not reorganize the files (i. e. sorting members, etc.)Are there any workarounds or settings to override this behaviour?
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions