Skip to content

Examples have non-recommend value #54202

@perclausen

Description

@perclausen

Type of issue

Other (describe below)

Description

<LangVersion> 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions