From f741ddf26d5382ba82fd7f0b72cf6d04ef23e32b Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 7 May 2024 15:08:53 -0700 Subject: [PATCH] fix broken links --- docs/core/tools/dotnet-new-sdk-templates.md | 8 ++++---- .../language-reference/compiler-options/language.md | 2 +- docs/csharp/misc/cs1617.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/core/tools/dotnet-new-sdk-templates.md b/docs/core/tools/dotnet-new-sdk-templates.md index c731660c6960e..b0158a9b7322b 100644 --- a/docs/core/tools/dotnet-new-sdk-templates.md +++ b/docs/core/tools/dotnet-new-sdk-templates.md @@ -44,7 +44,7 @@ The templates that ship with the .NET SDK have the following additional options: Sets the `LangVersion` property in the created project file. For example, use `--langVersion 7.3` to use C# 7.3. Not supported for F#. Available since .NET Core 2.2 SDK. - For a list of default C# versions, see [Defaults](../../csharp/language-reference/configure-language-version.md#defaults). + For a list of default C# versions, see [Defaults](../../csharp/language-reference/language-versioning.md#defaults). - **`--no-restore`** @@ -68,7 +68,7 @@ The templates that ship with the .NET SDK have the following additional options: Sets the `LangVersion` property in the created project file. For example, use `--langVersion 7.3` to use C# 7.3. Not supported for F#. Available since .NET Core 2.2 SDK. - For a list of default C# versions, see [Defaults](../../csharp/language-reference/configure-language-version.md#defaults). + For a list of default C# versions, see [Defaults](../../csharp/language-reference/language-versioning.md#defaults). - **`--no-restore`** @@ -86,7 +86,7 @@ The templates that ship with the .NET SDK have the following additional options: Sets the `LangVersion` property in the created project file. For example, use `--langVersion 7.3` to use C# 7.3. - For a list of default C# versions, see [Defaults](../../csharp/language-reference/configure-language-version.md#defaults). + For a list of default C# versions, see [Defaults](../../csharp/language-reference/language-versioning.md#defaults). - **`--no-restore`** @@ -100,7 +100,7 @@ The templates that ship with the .NET SDK have the following additional options: Sets the `LangVersion` property in the created project file. For example, use `--langVersion 7.3` to use C# 7.3. - For a list of default C# versions, see [Defaults](../../csharp/language-reference/configure-language-version.md#defaults). + For a list of default C# versions, see [Defaults](../../csharp/language-reference/language-versioning.md#defaults). - **`--no-restore`** diff --git a/docs/csharp/language-reference/compiler-options/language.md b/docs/csharp/language-reference/compiler-options/language.md index 29b15da1890b2..01b2aadbea579 100644 --- a/docs/csharp/language-reference/compiler-options/language.md +++ b/docs/csharp/language-reference/compiler-options/language.md @@ -60,7 +60,7 @@ This option specifies the names of one or more symbols that you want to define. ## LangVersion -The default language version for the C# compiler depends on the target framework for your application and the version of the SDK or Visual Studio installed. Those rules are defined in [C# language versioning](../configure-language-version.md#defaults). +The default language version for the C# compiler depends on the target framework for your application and the version of the SDK or Visual Studio installed. Those rules are defined in [C# language versioning](../language-versioning.md#defaults). The **LangVersion** option causes the compiler to accept only syntax that is included in the specified C# language specification, for example: diff --git a/docs/csharp/misc/cs1617.md b/docs/csharp/misc/cs1617.md index aee5960d43c19..b2a6f184bc00b 100644 --- a/docs/csharp/misc/cs1617.md +++ b/docs/csharp/misc/cs1617.md @@ -18,7 +18,7 @@ For example, compiling with `csc -langversion:ISO` will generate error CS1617. ## Valid values for -langversion -The valid values for the language versions depend on the .NET version you are using. See [the language version rules](../language-reference/configure-language-version.md#defaults) for more information on which language version is available with which version of .NET. If you are receiving this error while attempting to use a newer language version, either downgrade to a lower language version or update your .NET SDK to a version that supports the language version. +The valid values for the language versions depend on the .NET version you are using. See [the language version rules](../language-reference/language-versioning.md#defaults) for more information on which language version is available with which version of .NET. If you are receiving this error while attempting to use a newer language version, either downgrade to a lower language version or update your .NET SDK to a version that supports the language version. The following table specifies the current valid values for `-langversion`: