I recently migrated a large solution (10+ projects) from .NET 8 to .NET 10, and updated the LangVersion from C# 12 to C# 14 in Rider IDE.
My concern: with that many projects, it's easy to accidentally miss one during a manual update. I'm looking for a reliable way to verify that ALL .csproj files in my solution actually target net10.0 and use LangVersion 14.
What I've tried so far:
- Manually checking each .csproj — error-prone with many projects
- A simple PowerShell regex scan over all .csproj files looking for
"net10.0" — but this misses cases with multiple
blocks or (plural, multi-targeting)
Questions:
- Is there a built-in Rider/Visual Studio feature that shows TargetFramework + LangVersion for all projects in a solution at once?
- Is there a dotnet CLI command?
Environment: Rider 2025.3.3, .NET 10 SDK, C# 14.