Relative Content

Tag Archive for c#visual-studio-2022multitargeting

Handling C# language version specific suggestions in multi-targeted solutions

I’m working with a solution containing over 50 projects targeting both .NET Framework 4.8 and .NET 7 (Windows only). I’ve encountered an issue where the compiler provides syntax suggestions that are incompatible with C# 7.3, such as IDE0090, which requires C# 9 or higher. Implementing these suggestions causes the build to fail for .NET 4.8 targets.