Ensure your project targets (not .NET 6/8/9). Right-click project → Properties → Application → Target Framework.
Consider a scenario where an enterprise application written in .NET Framework 4.8 is being upgraded to run on Visual Studio 2022. devcomponents dotnetbar visual studio 2022