Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emphasize concerns with latest LangVersion #42639

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Sep 17, 2024

Fixes #42400

Add more emphasis to discourage use of latest as the LangVersion element:

  • Change the style to WARNING
  • Add that latest can use a different language version on different machines.
  • Add that note and link from other C# docs discussing versioning.

Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-options/language.md docs/csharp/language-reference/compiler-options/language
docs/csharp/language-reference/configure-language-version.md docs/csharp/language-reference/configure-language-version
docs/csharp/language-reference/language-versioning.md docs/csharp/language-reference/language-versioning
docs/csharp/versioning.md docs/csharp/versioning

Fixes dotnet#42400

Add more emphasis to discourage use of `latest` as the `LangVersion` element:

- Change the style to `WARNING`
- Add that `latest` can use a different language version on different machines.
- Add that note and link from other C# docs discussing versioning.
@BillWagner
Copy link
Member Author

/cc @jnm2

Let me know what you think.

@jnm2
Copy link
Contributor

jnm2 commented Sep 18, 2024

@BillWagner This looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve visibility of recommendation not to use the 'latest' langversion
4 participants