Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Mar 12, 2025

The default <LangVersion> for netstandard2.0 projects is 7.3, which does not contain many of the niceties we would like to use. Throughout our history we have updated individual projects to use the latest language features, but this has led to inconsistencies.

Instead, standardize this in Directory.Build.targets to use a common C# language version for netstandard2.0 projects.

Note we standardized on 13.0 (the one that ships with .NET 9) instead of latest, as latest is discouraged because it can change based on what versions are installed on a machine.

@jpobst jpobst marked this pull request as ready for review March 12, 2025 21:03
@jpobst jpobst requested a review from jonpryor March 12, 2025 21:03
@jonpryor jonpryor merged commit c1cd06d into main Mar 12, 2025
2 checks passed
@jonpryor jonpryor deleted the dev/jpobst/langversion-2.0 branch March 12, 2025 21:14
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants