Remove redundant #if NET directives from .NET-only files
#118424
Merged
#if NET directives from .NET-only files
#118424