Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unable to change the active target framework in Visual Studio

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.

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading