I am creating a class library that targets dotnet standard 2.1 and dotnet framework 4.6. I am trying to use pre-processor directives to mark code that is framework specific, but I am losing colors and error highlighting. But only in between the NETSTANDARD2_1 blocks.
How can I fix this? I am using Visual Studio 2022 Preview 4.

