My C# class library targets several versions of .NET.
<TargetFrameworks>net7.0;net6.0;net5.0;netstandard2.0</TargetFrameworks>
But as I edit the code, it seems to show .NET Standard as the active target by graying out lines that are for non-.NET Standard targets.
My question is: Where is this set? How does it determine which target is the active target. I’ve looked everywhere but can’t see how to change this.
>Solution :
Use the drop down at the top of the document to change your target framework.

