dotnet / dotnet/docs

Examples have non-recommend value

Open
#54,202 1 comment 0 reactions 0 assignees View on GitHub
dotnet-csharp/svc lang-reference/subsvc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Other (describe below)

### Description

`` examples should not be set to `preview` when it's not recommended to use `latests` or `preview`.

_Don't set the LangVersion element to latest. The latest setting means the installed compiler uses its latest version. The value of latest can change from machine to machine, making builds unreliable. In addition, it enables language features that might require runtime or library features not included in the current SDK._

### Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/configure-language-version.md

### Document Version Independent Id

3f01c378-22e4-197c-a862-ab4a924506c7

### Platform Id

cdf11e08-8e9a-84aa-affe-8a392bed026a

### Article author

@BillWagner

### Metadata

* ID: 5694e62b-c756-1f62-4014-2ceafa54c011
* PlatformId: cdf11e08-8e9a-84aa-affe-8a392bed026a
* Service: **dotnet-csharp**
* Sub-service: **lang-reference**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+3f01c378-22e4-197c-a862-ab4a924506c7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.