In light of the fact that C # is used a lot on which platforms, a piece of old code can be used on them anyway anyway, but if the program on the computer supports pieces of the WinForms project tightened in WPF, ASP swears at them.
Is there a mechanism to ignore this piece of code depending on the platform?
I hope the question is correctly set.