diff --git a/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md b/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md index 8589e513c6d3..6cde47ffd258 100644 --- a/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md +++ b/aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md @@ -36,7 +36,7 @@ For prerequisites and preliminary steps, see The sample app is a starter solution that contains a native, cross-platform MAUI Blazor Hybrid app, a Blazor Web App, and a Razor class library (RCL) that contains the shared UI (Razor components) used by the native and web apps. -1. Clone this repository or download a ZIP archive of the repository. For more information, see [How to download a sample](xref:index#how-to-download-a-sample). +1. Clone this repository or download a ZIP archive of the repository. For more information, see [How to download a sample](xref:fundamentals/index#how-to-download-a-sample). 1. Make sure you have [.NET 9 and the MAUI workload installed (.NET MAUI documentation)](/dotnet/maui/get-started/installation). 1. Open the solution in Visual Studio (2022 or later) or VS Code with the .NET MAUI extension installed. 1. Set the `MauiBlazorWeb` MAUI project as the startup project. In Visual Studio, right-click the project and select **Set as Startup Project**. diff --git a/aspnetcore/client-side/libman/libman-vs.md b/aspnetcore/client-side/libman/libman-vs.md index 5adcfe1c82b9..6eb2bc5bfef4 100644 --- a/aspnetcore/client-side/libman/libman-vs.md +++ b/aspnetcore/client-side/libman/libman-vs.md @@ -18,7 +18,7 @@ Visual Studio has built-in support for [LibMan](xref:client-side/libman/index) i * Search dialog for finding libraries and adding the files to a project. * Editing support for `libman.json`—the LibMan manifest file. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/client-side/libman/samples/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/client-side/libman/samples/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Prerequisites diff --git a/aspnetcore/data/ef-rp/concurrency.md b/aspnetcore/data/ef-rp/concurrency.md index 8254fb4382c5..66910de6dc3d 100644 --- a/aspnetcore/data/ef-rp/concurrency.md +++ b/aspnetcore/data/ef-rp/concurrency.md @@ -821,7 +821,7 @@ This is the last tutorial in the series. Additional topics are covered in the [M :::moniker range="< aspnetcore-3.0" -This tutorial shows how to handle conflicts when multiple users update an entity concurrently (at the same time). If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:index#how-to-download-a-sample). +This tutorial shows how to handle conflicts when multiple users update an entity concurrently (at the same time). If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). ## Concurrency conflicts diff --git a/aspnetcore/data/ef-rp/intro.md b/aspnetcore/data/ef-rp/intro.md index 5838bba4f66a..6592adee4480 100644 --- a/aspnetcore/data/ef-rp/intro.md +++ b/aspnetcore/data/ef-rp/intro.md @@ -18,7 +18,7 @@ By [Tom Dykstra](https://github.com/tdykstra), [Jeremy Likness](https://twitter. This is the first in a series of tutorials that show how to use Entity Framework (EF) Core in an [ASP.NET Core Razor Pages](xref:razor-pages/index) app. The tutorials build a web site for a fictional Contoso University. The site includes functionality such as student admission, course creation, and instructor assignments. The tutorial uses the code first approach. For information on following this tutorial using the database first approach, see [this Github issue](https://github.com/dotnet/AspNetCore.Docs/issues/16897). -[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu60) [Download instructions](xref:index#how-to-download-a-sample). +[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu60) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). ## Prerequisites @@ -62,7 +62,7 @@ The UI style of this site is based on the built-in project templates. The tutori ### Optional: Build the sample download -This step is optional. Building the completed app is recommended when you have problems you can't solve. If you run into a problem you can't resolve, compare your code to the [completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50). [Download instructions](xref:index#how-to-download-a-sample). +This step is optional. Building the completed app is recommended when you have problems you can't solve. If you run into a problem you can't resolve, compare your code to the [completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50). [Download instructions](xref:fundamentals/index#how-to-download-a-sample). # [Visual Studio](#tab/visual-studio) @@ -550,7 +550,7 @@ For more information, see [Performance considerations (EF)](/ef/core/performance This is the first in a series of tutorials that show how to use Entity Framework (EF) Core in an [ASP.NET Core Razor Pages](xref:razor-pages/index) app. The tutorials build a web site for a fictional Contoso University. The site includes functionality such as student admission, course creation, and instructor assignments. The tutorial uses the code first approach. For information on following this tutorial using the database first approach, see [this Github issue](https://github.com/dotnet/AspNetCore.Docs/issues/16897). -[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50) [Download instructions](xref:index#how-to-download-a-sample). +[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). ## Prerequisites @@ -594,7 +594,7 @@ The UI style of this site is based on the built-in project templates. The tutori ### Optional: Build the sample download -This step is optional. Building the completed app is recommended when you have problems you can't solve. If you run into a problem you can't resolve, compare your code to the [completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50). [Download instructions](xref:index#how-to-download-a-sample). +This step is optional. Building the completed app is recommended when you have problems you can't solve. If you run into a problem you can't resolve, compare your code to the [completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples/cu50). [Download instructions](xref:fundamentals/index#how-to-download-a-sample). # [Visual Studio](#tab/visual-studio) @@ -1064,7 +1064,7 @@ For more information, see [Performance considerations (EF)](/dotnet/framework/da This is the first in a series of tutorials that show how to use Entity Framework (EF) Core in an [ASP.NET Core Razor Pages](xref:razor-pages/index) app. The tutorials build a web site for a fictional Contoso University. The site includes functionality such as student admission, course creation, and instructor assignments. The tutorial uses the code first approach. For information on following this tutorial using the database first approach, see [this Github issue](https://github.com/dotnet/AspNetCore.Docs/issues/16897). -[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:index#how-to-download-a-sample). +[Download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). ## Prerequisites diff --git a/aspnetcore/data/ef-rp/read-related-data.md b/aspnetcore/data/ef-rp/read-related-data.md index 0b0fd2e08807..4e3fd9ace646 100644 --- a/aspnetcore/data/ef-rp/read-related-data.md +++ b/aspnetcore/data/ef-rp/read-related-data.md @@ -606,7 +606,7 @@ The next tutorial shows how to update related data. In this tutorial, related data is read and displayed. Related data is data that EF Core loads into navigation properties. -If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:index#how-to-download-a-sample). +If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). The following illustrations show the completed pages for this tutorial: diff --git a/aspnetcore/data/ef-rp/update-related-data.md b/aspnetcore/data/ef-rp/update-related-data.md index 6c76ab5dfebd..04f11200b2cd 100644 --- a/aspnetcore/data/ef-rp/update-related-data.md +++ b/aspnetcore/data/ef-rp/update-related-data.md @@ -455,7 +455,7 @@ Run the app and test the Delete page. :::moniker range="< aspnetcore-3.0" -This tutorial demonstrates updating related data. If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:index#how-to-download-a-sample). +This tutorial demonstrates updating related data. If you run into problems you can't solve, [download or view the completed app.](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/data/ef-rp/intro/samples) [Download instructions](xref:fundamentals/index#how-to-download-a-sample). The following illustrations shows some of the completed pages. diff --git a/aspnetcore/fundamentals/app-state.md b/aspnetcore/fundamentals/app-state.md index 3f61b9598741..cf4fd4a5978b 100644 --- a/aspnetcore/fundamentals/app-state.md +++ b/aspnetcore/fundamentals/app-state.md @@ -293,7 +293,7 @@ The recommended approach to check for errors is to call `await feature.Session.C ## Additional resources -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/app-state/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/app-state/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) @@ -305,7 +305,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT), [Kirk Larkin](https://twitt HTTP is a stateless protocol. By default, HTTP requests are independent messages that don't retain user values. This article describes several approaches to preserve user data between requests. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/app-state/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/app-state/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## State management diff --git a/aspnetcore/fundamentals/change-tokens.md b/aspnetcore/fundamentals/change-tokens.md index 471481413ec9..f4f223f88b64 100644 --- a/aspnetcore/fundamentals/change-tokens.md +++ b/aspnetcore/fundamentals/change-tokens.md @@ -15,7 +15,7 @@ uid: fundamentals/change-tokens A *change token* is a general-purpose, low-level building block used to track state changes. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/change-tokens/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/change-tokens/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## IChangeToken interface @@ -213,7 +213,7 @@ var compositeChangeToken = A *change token* is a general-purpose, low-level building block used to track state changes. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/change-tokens/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/change-tokens/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## IChangeToken interface diff --git a/aspnetcore/fundamentals/configuration/index.md b/aspnetcore/fundamentals/configuration/index.md index 916d2a90accf..0b5ed31964f8 100644 --- a/aspnetcore/fundamentals/configuration/index.md +++ b/aspnetcore/fundamentals/configuration/index.md @@ -971,7 +971,7 @@ The [Configuration-binding source generator](/dotnet/core/whats-new/dotnet-8/run ## Additional resources * [Configuration source code](https://github.com/dotnet/runtime/tree/main/src/libraries/Microsoft.Extensions.Configuration) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * diff --git a/aspnetcore/fundamentals/configuration/index/includes/index6.md b/aspnetcore/fundamentals/configuration/index/includes/index6.md index b7ab01e9964f..0c5f3d7e94e5 100644 --- a/aspnetcore/fundamentals/configuration/index/includes/index6.md +++ b/aspnetcore/fundamentals/configuration/index/includes/index6.md @@ -932,7 +932,7 @@ An implementation allows add ## Additional resources * [Configuration source code](https://github.com/dotnet/runtime/tree/main/src/libraries/Microsoft.Extensions.Configuration) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * diff --git a/aspnetcore/fundamentals/configuration/index/includes/index7.md b/aspnetcore/fundamentals/configuration/index/includes/index7.md index 782f83c6cbb9..61b295901d10 100644 --- a/aspnetcore/fundamentals/configuration/index/includes/index7.md +++ b/aspnetcore/fundamentals/configuration/index/includes/index7.md @@ -937,7 +937,7 @@ An implementation allows add ## Additional resources * [Configuration source code](https://github.com/dotnet/runtime/tree/main/src/libraries/Microsoft.Extensions.Configuration) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/configuration/index/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * diff --git a/aspnetcore/fundamentals/configuration/options.md b/aspnetcore/fundamentals/configuration/options.md index fb9c74770bb0..9e10fb6f703f 100644 --- a/aspnetcore/fundamentals/configuration/options.md +++ b/aspnetcore/fundamentals/configuration/options.md @@ -254,7 +254,7 @@ To access or or diff --git a/aspnetcore/fundamentals/dependency-injection.md b/aspnetcore/fundamentals/dependency-injection.md index d1f29cb475fd..df7e66597505 100644 --- a/aspnetcore/fundamentals/dependency-injection.md +++ b/aspnetcore/fundamentals/dependency-injection.md @@ -27,7 +27,7 @@ For information on dependency injection of options, see * * @@ -593,7 +593,7 @@ Use the * * diff --git a/aspnetcore/fundamentals/error-handling.md b/aspnetcore/fundamentals/error-handling.md index 671995d63f22..0b8c43977ade 100644 --- a/aspnetcore/fundamentals/error-handling.md +++ b/aspnetcore/fundamentals/error-handling.md @@ -339,7 +339,7 @@ An alternative approach to generate problem details is to use the third-party Nu ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * diff --git a/aspnetcore/fundamentals/error-handling/includes/error-handling3-7.md b/aspnetcore/fundamentals/error-handling/includes/error-handling3-7.md index f28328c115e7..abf8fc8849bb 100644 --- a/aspnetcore/fundamentals/error-handling/includes/error-handling3-7.md +++ b/aspnetcore/fundamentals/error-handling/includes/error-handling3-7.md @@ -311,7 +311,7 @@ An alternative approach to generate problem details is to use the third-party Nu ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * @@ -518,7 +518,7 @@ For information about how to handle model state errors, see [Model binding](xref ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * @@ -530,7 +530,7 @@ By [Kirk Larkin](https://twitter.com/serpent5), [Tom Dykstra](https://github.com This article covers common approaches to handling errors in ASP.NET Core web apps. See for web APIs. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples). ([How to download](xref:index#how-to-download-a-sample).) The network tab on the F12 browser developer tools is useful when testing the sample app. +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample).) The network tab on the F12 browser developer tools is useful when testing the sample app. ## Developer Exception Page @@ -787,7 +787,7 @@ By [Tom Dykstra](https://github.com/tdykstra/), and [Steve Smith](https://ardal This article covers common approaches to handling errors in ASP.NET Core web apps. See for web APIs. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples). ([How to download](xref:index#how-to-download-a-sample).) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample).) ## Developer Exception Page diff --git a/aspnetcore/fundamentals/error-handling/includes/error-handling8.md b/aspnetcore/fundamentals/error-handling/includes/error-handling8.md index 9c40f8fdb818..51ff48dd1d8a 100644 --- a/aspnetcore/fundamentals/error-handling/includes/error-handling8.md +++ b/aspnetcore/fundamentals/error-handling/includes/error-handling8.md @@ -338,7 +338,7 @@ An alternative approach to generate problem details is to use the third-party Nu ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/error-handling/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * diff --git a/aspnetcore/fundamentals/file-providers.md b/aspnetcore/fundamentals/file-providers.md index 2648d748fba6..1ecc98467a2b 100644 --- a/aspnetcore/fundamentals/file-providers.md +++ b/aspnetcore/fundamentals/file-providers.md @@ -23,7 +23,7 @@ ASP.NET Core abstracts file system access through the use of File Providers. Fil * [Razor](xref:mvc/views/razor) uses File Providers to locate pages and views. * .NET tooling uses File Providers and glob patterns to specify which files should be published. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/file-providers/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/file-providers/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## File Provider interfaces @@ -174,7 +174,7 @@ ASP.NET Core abstracts file system access through the use of File Providers. Fil * [Razor](xref:mvc/views/razor) uses File Providers to locate pages and views. * .NET tooling uses File Providers and glob patterns to specify which files should be published. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/file-providers/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/file-providers/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## File Provider interfaces diff --git a/aspnetcore/fundamentals/host/hosted-services.md b/aspnetcore/fundamentals/host/hosted-services.md index fd24ebbdafb5..77628c12822c 100644 --- a/aspnetcore/fundamentals/host/hosted-services.md +++ b/aspnetcore/fundamentals/host/hosted-services.md @@ -203,7 +203,7 @@ The AOT option adds `true` to the project file: ## Additional resources * [Background services unit tests on GitHub](https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/BackgroundServiceTests.cs). -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Implement background tasks in microservices with IHostedService and the BackgroundService class](/dotnet/standard/microservices-architecture/multi-container-microservice-net-applications/background-tasks-with-ihostedservice) * [Run background tasks with WebJobs in Azure App Service](/azure/app-service/webjobs-create) * diff --git a/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services5.md b/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services5.md index 8d9dce30e8ad..0d6a1d6b4af0 100644 --- a/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services5.md +++ b/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services5.md @@ -6,7 +6,7 @@ In ASP.NET Core, background tasks can be implemented as *hosted services*. A hos * Hosted service that activates a [scoped service](xref:fundamentals/dependency-injection#service-lifetimes). The scoped service can use [dependency injection (DI)](xref:fundamentals/dependency-injection). * Queued background tasks that run sequentially. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Worker Service template diff --git a/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services67.md b/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services67.md index 5f9d5b24f4ea..b6743acb4d1a 100644 --- a/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services67.md +++ b/aspnetcore/fundamentals/host/hosted-services/includes/hosted-services67.md @@ -143,7 +143,7 @@ The following code creates an asynchronous timed background task: ## Additional resources * [Background services unit tests on GitHub](https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/BackgroundServiceTests.cs). -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/hosted-services/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Implement background tasks in microservices with IHostedService and the BackgroundService class](/dotnet/standard/microservices-architecture/multi-container-microservice-net-applications/background-tasks-with-ihostedservice) * [Run background tasks with WebJobs in Azure App Service](/azure/app-service/webjobs-create) * diff --git a/aspnetcore/fundamentals/host/platform-specific-configuration.md b/aspnetcore/fundamentals/host/platform-specific-configuration.md index ab5ea5a1cdb5..6b5ed4a0271c 100644 --- a/aspnetcore/fundamentals/host/platform-specific-configuration.md +++ b/aspnetcore/fundamentals/host/platform-specific-configuration.md @@ -18,7 +18,7 @@ By [Pavel Krymets](https://github.com/pakrym) An (hosting startup) implementation adds enhancements to an app at startup from an external assembly. For example, an external library can use a hosting startup implementation to provide additional configuration providers or services to an app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## HostingStartup attribute @@ -375,7 +375,7 @@ A hosting startup enhancement can be provided by a *bin*-deployed assembly in th ## Sample code -The [sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:index#how-to-download-a-sample)) demonstrates hosting startup implementation scenarios: +The [sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) demonstrates hosting startup implementation scenarios: * Two hosting startup assemblies (class libraries) set a pair of in-memory configuration key-value pairs each: * NuGet package (*HostingStartupPackage*) @@ -448,7 +448,7 @@ dotnet nuget locals all --clear An (hosting startup) implementation adds enhancements to an app at startup from an external assembly. For example, an external library can use a hosting startup implementation to provide additional configuration providers or services to an app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## HostingStartup attribute @@ -761,7 +761,7 @@ A hosting startup enhancement can be provided by a *bin*-deployed assembly in th ## Sample code -The [sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:index#how-to-download-a-sample)) demonstrates hosting startup implementation scenarios: +The [sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/host/platform-specific-configuration/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) demonstrates hosting startup implementation scenarios: * Two hosting startup assemblies (class libraries) set a pair of in-memory configuration key-value pairs each: * NuGet package (*HostingStartupPackage*) diff --git a/aspnetcore/fundamentals/http-requests.md b/aspnetcore/fundamentals/http-requests.md index 003097d69eac..def559cb6f3c 100644 --- a/aspnetcore/fundamentals/http-requests.md +++ b/aspnetcore/fundamentals/http-requests.md @@ -376,7 +376,7 @@ Header propagation is an ASP.NET Core middleware to propagate HTTP headers from ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Use HttpClientFactory to implement resilient HTTP requests](/dotnet/standard/microservices-architecture/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests) * [Implement HTTP call retries with exponential backoff with HttpClientFactory and Polly policies](/dotnet/standard/microservices-architecture/implement-resilient-applications/implement-http-call-retries-exponential-backoff-polly) * [Implement the Circuit Breaker pattern](/dotnet/standard/microservices-architecture/implement-resilient-applications/implement-circuit-breaker-pattern) @@ -395,7 +395,7 @@ An can be registered and used to confi * Manages the pooling and lifetime of underlying `HttpClientMessageHandler` instances. Automatic management avoids common DNS (Domain Name System) problems that occur when manually managing `HttpClient` lifetimes. * Adds a configurable logging experience (via `ILogger`) for all requests sent through clients created by the factory. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). The sample code in this topic version uses to deserialize JSON content returned in HTTP responses. For samples that use `Json.NET` and `ReadAsAsync`, use the version selector to select a 2.x version of this topic. @@ -820,7 +820,7 @@ An can be registered and used to confi * Manages the pooling and lifetime of underlying `HttpClientMessageHandler` instances. Automatic management avoids common DNS (Domain Name System) problems that occur when manually managing `HttpClient` lifetimes. * Adds a configurable logging experience (via `ILogger`) for all requests sent through clients created by the factory. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). The sample code in this topic version uses to deserialize JSON content returned in HTTP responses. For samples that use `Json.NET` and `ReadAsAsync`, use the version selector to select a 2.x version of this topic. @@ -1242,7 +1242,7 @@ An can be registered and used to confi * Manages the pooling and lifetime of underlying `HttpClientMessageHandler` instances to avoid common DNS problems that occur when manually managing `HttpClient` lifetimes. * Adds a configurable logging experience (via `ILogger`) for all requests sent through clients created by the factory. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/http-requests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/fundamentals/localization.md b/aspnetcore/fundamentals/localization.md index 11db6fc1182e..be1f4296cb79 100644 --- a/aspnetcore/fundamentals/localization.md +++ b/aspnetcore/fundamentals/localization.md @@ -42,7 +42,7 @@ Globalizing and localizing an app involves the following tasks: * [Provide localized resources for the cultures the app supports](xref:fundamentals/localization/provide-resources) * [Implement a strategy to select the culture for each request](xref:fundamentals/localization/select-language-culture) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/localization/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/localization/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ASP.NET Core MVC controllers request dependencies explicitly via constructors. ASP.NET Core has built-in support for [dependency injection (DI)](xref:fundamentals/dependency-injection). DI makes apps easier to test and maintain. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Constructor injection diff --git a/aspnetcore/mvc/controllers/filters.md b/aspnetcore/mvc/controllers/filters.md index 8735f1c395b3..42b8163db2fd 100644 --- a/aspnetcore/mvc/controllers/filters.md +++ b/aspnetcore/mvc/controllers/filters.md @@ -539,7 +539,7 @@ When passing an *instance* of a filter into `Add`, instead of its `Type`, the fi ## Additional resources -* [View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:index#how-to-download-a-sample)). +* [View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * :::moniker-end diff --git a/aspnetcore/mvc/controllers/filters/includes/filters7.md b/aspnetcore/mvc/controllers/filters/includes/filters7.md index ac6cda7201a1..779512c93233 100644 --- a/aspnetcore/mvc/controllers/filters/includes/filters7.md +++ b/aspnetcore/mvc/controllers/filters/includes/filters7.md @@ -535,7 +535,7 @@ When passing an *instance* of a filter into `Add`, instead of its `Type`, the fi ## Additional resources -* [View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:index#how-to-download-a-sample)). +* [View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * :::moniker-end @@ -558,7 +558,7 @@ This document applies to Razor Pages, API controllers, and controllers with view * The component is embedded in a page or view. * The page or controller and view uses the filter. -[View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/filters/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## How filters work diff --git a/aspnetcore/mvc/controllers/includes/dependency-injection7.md b/aspnetcore/mvc/controllers/includes/dependency-injection7.md index eeaf6c5b6b21..63da77b4de8c 100644 --- a/aspnetcore/mvc/controllers/includes/dependency-injection7.md +++ b/aspnetcore/mvc/controllers/includes/dependency-injection7.md @@ -5,7 +5,7 @@ By [Shadi Alnamrouti](https://stackoverflow.com/users/3380497/shadi-alnamrouti), ASP.NET Core MVC controllers request dependencies explicitly via constructors. ASP.NET Core has built-in support for [dependency injection (DI)](xref:fundamentals/dependency-injection). DI makes apps easier to test and maintain. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Constructor injection @@ -65,11 +65,9 @@ The following code requests the `IOptions` settings from the :::moniker range="< aspnetcore-3.0" -By [Shadi Namrouti](https://shadinamrouti.com/), [Rick Anderson](https://twitter.com/RickAndMSFT), and [Steve Smith](https://github.com/ardalis) - ASP.NET Core MVC controllers request dependencies explicitly via constructors. ASP.NET Core has built-in support for [dependency injection (DI)](xref:fundamentals/dependency-injection). DI makes apps easier to test and maintain. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/dependency-injection/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Constructor injection diff --git a/aspnetcore/mvc/controllers/routing.md b/aspnetcore/mvc/controllers/routing.md index e24d8ff49618..8318a3e89454 100644 --- a/aspnetcore/mvc/controllers/routing.md +++ b/aspnetcore/mvc/controllers/routing.md @@ -848,7 +848,7 @@ Public methods on a controller, except those with the [NonAction](xref:Microsoft ## Sample code * [!INCLUDE[](~/includes/MyDisplayRouteInfo.md)] -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/routing/samples/3.x) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/routing/samples/3.x) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) [!INCLUDE[](~/includes/dbg-route.md)] @@ -1688,7 +1688,7 @@ Public methods on a controller, except those with the [NonAction](xref:Microsoft ## Sample code * [!INCLUDE[](~/includes/MyDisplayRouteInfo.md)] -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/routing/samples/3.x) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/routing/samples/3.x) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) [!INCLUDE[](~/includes/dbg-route.md)] diff --git a/aspnetcore/mvc/controllers/testing.md b/aspnetcore/mvc/controllers/testing.md index 66bfc9529976..79c79744a95d 100644 --- a/aspnetcore/mvc/controllers/testing.md +++ b/aspnetcore/mvc/controllers/testing.md @@ -24,7 +24,7 @@ If you're writing custom filters and routes, unit test them in isolation, not as To demonstrate controller unit tests, review the following controller in the sample app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/testing/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/testing/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The Home controller displays a list of brainstorming sessions and allows the creation of new brainstorming sessions with a POST request: @@ -179,7 +179,7 @@ For a valid session `id`, the final test confirms that: [Controllers](xref:mvc/controllers/actions) play a central role in any ASP.NET Core MVC app. As such, you should have confidence that controllers behave as intended. Automated tests can detect errors before the app is deployed to a production environment. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/testing/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/controllers/testing/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Unit tests of controller logic diff --git a/aspnetcore/mvc/models/file-uploads.md b/aspnetcore/mvc/models/file-uploads.md index a3430f5850da..17bffb8ea4eb 100644 --- a/aspnetcore/mvc/models/file-uploads.md +++ b/aspnetcore/mvc/models/file-uploads.md @@ -16,7 +16,7 @@ By [Rutger Storm](https://github.com/rutix) ASP.NET Core supports uploading one or more files using buffered model binding for smaller files and unbuffered streaming for larger files. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Security considerations @@ -798,7 +798,7 @@ The examples in this topic rely upon to hold the u ASP.NET Core supports uploading one or more files using buffered model binding for smaller files and unbuffered streaming for larger files. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Security considerations @@ -1533,7 +1533,7 @@ The examples in this topic rely upon to hold the u ASP.NET Core supports uploading one or more files using buffered model binding for smaller files and unbuffered streaming for larger files. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/file-uploads/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Security considerations diff --git a/aspnetcore/mvc/models/model-binding.md b/aspnetcore/mvc/models/model-binding.md index 93a310f2e450..004f1268ba48 100644 --- a/aspnetcore/mvc/models/model-binding.md +++ b/aspnetcore/mvc/models/model-binding.md @@ -724,7 +724,7 @@ For nullable parameters, ensure that the parameter isn't `null` before accessing ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * diff --git a/aspnetcore/mvc/models/model-binding/includes/model-binding7.md b/aspnetcore/mvc/models/model-binding/includes/model-binding7.md index b8afac11dd53..ed7e4e925775 100644 --- a/aspnetcore/mvc/models/model-binding/includes/model-binding7.md +++ b/aspnetcore/mvc/models/model-binding/includes/model-binding7.md @@ -696,7 +696,7 @@ For nullable parameters, ensure that the parameter isn't `null` before accessing ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * @@ -1331,7 +1331,7 @@ For nullable parameters, ensure that the parameter isn't `null` before accessing ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * @@ -1341,7 +1341,7 @@ For nullable parameters, ensure that the parameter isn't `null` before accessing This article explains what model binding is, how it works, and how to customize its behavior. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/model-binding/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## What is Model binding diff --git a/aspnetcore/mvc/models/validation.md b/aspnetcore/mvc/models/validation.md index 81e0a96d5255..a29e3fb61e16 100644 --- a/aspnetcore/mvc/models/validation.md +++ b/aspnetcore/mvc/models/validation.md @@ -14,7 +14,7 @@ uid: mvc/models/validation This article explains how to validate user input in an ASP.NET Core MVC or Razor Pages app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Model state diff --git a/aspnetcore/mvc/models/validation/includes/validation6.md b/aspnetcore/mvc/models/validation/includes/validation6.md index 81aecedf197d..58822baab77c 100644 --- a/aspnetcore/mvc/models/validation/includes/validation6.md +++ b/aspnetcore/mvc/models/validation/includes/validation6.md @@ -2,7 +2,7 @@ This article explains how to validate user input in an ASP.NET Core MVC or Razor Pages app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Model state @@ -391,7 +391,7 @@ The preceding approach won't prevent client-side validation of ASP.NET Core Iden This article explains how to validate user input in an ASP.NET Core MVC or Razor Pages app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/models/validation/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Model state diff --git a/aspnetcore/mvc/views/dependency-injection.md b/aspnetcore/mvc/views/dependency-injection.md index bcd574480bd7..495d9f96283d 100644 --- a/aspnetcore/mvc/views/dependency-injection.md +++ b/aspnetcore/mvc/views/dependency-injection.md @@ -12,7 +12,7 @@ uid: mvc/views/dependency-injection ASP.NET Core supports [dependency injection](xref:fundamentals/dependency-injection) into views. This can be useful for view-specific services, such as localization or data required only for populating view elements. Most of the data views display should be passed in from the controller. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/dependency-injection/6.0sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/dependency-injection/6.0sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Configuration injection @@ -95,7 +95,7 @@ The default fields include `Html`, `Component`, and `Url`. To replace the defaul ASP.NET Core supports [dependency injection](xref:fundamentals/dependency-injection) into views. This can be useful for view-specific services, such as localization or data required only for populating view elements. You should try to maintain [separation of concerns](/dotnet/standard/modern-web-apps-azure-architecture/architectural-principles#separation-of-concerns) between your controllers and views. Most of the data your views display should be passed in from the controller. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/dependency-injection/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/dependency-injection/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Configuration injection diff --git a/aspnetcore/mvc/views/display-templates.md b/aspnetcore/mvc/views/display-templates.md index 564325b514b8..79bf99561ffc 100644 --- a/aspnetcore/mvc/views/display-templates.md +++ b/aspnetcore/mvc/views/display-templates.md @@ -76,6 +76,6 @@ The following markup shows the *Edit.cshtml* page which uses the `Pages/Shared/E ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/display-templates/sample) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/display-templates/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Tag Helpers](xref:mvc/views/tag-helpers/intro) * [Tag Helpers compared to HTML Helpers](xref:mvc/views/tag-helpers/intro#tag-helpers-compared-to-html-helpers) diff --git a/aspnetcore/mvc/views/partial.md b/aspnetcore/mvc/views/partial.md index 3282b7fb0bae..396c2c3d39a0 100644 --- a/aspnetcore/mvc/views/partial.md +++ b/aspnetcore/mvc/views/partial.md @@ -19,7 +19,7 @@ The term *partial view* is used when developing either an MVC app, where markup :::moniker-end -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/partial/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/partial/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## When to use partial views diff --git a/aspnetcore/mvc/views/tag-helpers/authoring.md b/aspnetcore/mvc/views/tag-helpers/authoring.md index bfc9589f3ea5..6974f7ad98fc 100644 --- a/aspnetcore/mvc/views/tag-helpers/authoring.md +++ b/aspnetcore/mvc/views/tag-helpers/authoring.md @@ -11,7 +11,7 @@ uid: mvc/views/tag-helpers/authoring By [Rick Anderson](https://twitter.com/RickAndMSFT) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/authoring/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/authoring/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Get started with Tag Helpers diff --git a/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md b/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md index 3b9c2b1c94c4..ad9c9293f962 100644 --- a/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md +++ b/aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md @@ -15,7 +15,7 @@ The [Anchor Tag Helper](xref:Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper For an overview of Tag Helpers, see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/built-in/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/built-in/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) *SpeakerController* is used in samples throughout this document: diff --git a/aspnetcore/mvc/views/tag-helpers/built-in/partial-tag-helper.md b/aspnetcore/mvc/views/tag-helpers/built-in/partial-tag-helper.md index 2770794675e7..624993af36db 100644 --- a/aspnetcore/mvc/views/tag-helpers/built-in/partial-tag-helper.md +++ b/aspnetcore/mvc/views/tag-helpers/built-in/partial-tag-helper.md @@ -14,7 +14,7 @@ By [Scott Addie](https://github.com/scottaddie) For an overview of Tag Helpers, see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/built-in/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/built-in/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Overview diff --git a/aspnetcore/mvc/views/tag-helpers/th-components.md b/aspnetcore/mvc/views/tag-helpers/th-components.md index 99dcded1b9c9..3ce86cd25063 100644 --- a/aspnetcore/mvc/views/tag-helpers/th-components.md +++ b/aspnetcore/mvc/views/tag-helpers/th-components.md @@ -15,7 +15,7 @@ A Tag Helper Component is a Tag Helper that allows you to conditionally modify o ASP.NET Core includes two built-in Tag Helper Components: `head` and `body`. They're located in the namespace and can be used in both MVC and Razor Pages. Tag Helper Components don't require registration with the app in `_ViewImports.cshtml`. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/th-components/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/tag-helpers/th-components/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Use cases diff --git a/aspnetcore/mvc/views/view-components.md b/aspnetcore/mvc/views/view-components.md index 944e6c6e9290..f6abdd7a959a 100644 --- a/aspnetcore/mvc/views/view-components.md +++ b/aspnetcore/mvc/views/view-components.md @@ -313,7 +313,7 @@ The method signature of `PriorityList.Invoke` is synchronous, but Razor finds an ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample6.x) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample6.x) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Dependency injection into views](xref:mvc/views/dependency-injection) * [View Components in Razor Pages](https://www.learnrazorpages.com/razor-pages/view-components) * [Why You Should Use View Components, not Partial Views, in ASP.NET Core](https://www.telerik.com/blogs/why-you-should-use-view-components-not-partial-views-aspnet-core) @@ -621,7 +621,7 @@ The method signature of `PriorityList.Invoke` is synchronous, but Razor finds an ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample6.x) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample6.x) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Dependency injection into views](xref:mvc/views/dependency-injection) * [View Components in Razor Pages](https://www.learnrazorpages.com/razor-pages/view-components) * [Why You Should Use View Components, not Partial Views, in ASP.NET Core](https://www.telerik.com/blogs/why-you-should-use-view-components-not-partial-views-aspnet-core) @@ -630,7 +630,7 @@ The method signature of `PriorityList.Invoke` is synchronous, but Razor finds an :::moniker range="< aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/mvc/views/view-components/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## View components diff --git a/aspnetcore/performance/caching/distributed.md b/aspnetcore/performance/caching/distributed.md index 455e9920ef79..3eaeeec77fa4 100644 --- a/aspnetcore/performance/caching/distributed.md +++ b/aspnetcore/performance/caching/distributed.md @@ -29,7 +29,7 @@ When cached data is distributed, the data: Distributed cache configuration is implementation specific. This article describes how to configure SQL Server, Redis, or Postgres distributed caches. Third party implementations are also available, such as [NCache](http://www.alachisoft.com/ncache/aspnet-core-idistributedcache-ncache.html) ([NCache on GitHub](https://github.com/Alachisoft/NCache)), Cosmos DB, and Postgres. Regardless of which implementation is selected, the app interacts with the cache using the interface. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) [!INCLUDE [managed-identities](~/includes/managed-identities-test-non-production.md)] diff --git a/aspnetcore/performance/caching/distributed/includes/distributed5.md b/aspnetcore/performance/caching/distributed/includes/distributed5.md index bb964ff9c1b3..d8272926677e 100644 --- a/aspnetcore/performance/caching/distributed/includes/distributed5.md +++ b/aspnetcore/performance/caching/distributed/includes/distributed5.md @@ -13,7 +13,7 @@ When cached data is distributed, the data: Distributed cache configuration is implementation specific. This article describes how to configure SQL Server, Redis, and Postgres distributed caches. Third party implementations are also available, such as [NCache](http://www.alachisoft.com/ncache/aspnet-core-idistributedcache-ncache.html) ([NCache on GitHub](https://github.com/Alachisoft/NCache)). Regardless of which implementation is selected, the app interacts with the cache using the interface. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/performance/caching/distributed/includes/distributed6-7.md b/aspnetcore/performance/caching/distributed/includes/distributed6-7.md index a889a7117a5e..db9b76567f70 100644 --- a/aspnetcore/performance/caching/distributed/includes/distributed6-7.md +++ b/aspnetcore/performance/caching/distributed/includes/distributed6-7.md @@ -13,7 +13,7 @@ When cached data is distributed, the data: Distributed cache configuration is implementation specific. This article describes how to configure SQL Server, Redis, and Postgres distributed caches. Third party implementations are also available, such as [NCache](http://www.alachisoft.com/ncache/aspnet-core-idistributedcache-ncache.html) ([NCache on GitHub](https://github.com/Alachisoft/NCache)). Regardless of which implementation is selected, the app interacts with the cache using the interface. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/distributed/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/performance/caching/memory.md b/aspnetcore/performance/caching/memory.md index 8ac6304297d0..b313ac15e9c8 100644 --- a/aspnetcore/performance/caching/memory.md +++ b/aspnetcore/performance/caching/memory.md @@ -177,7 +177,7 @@ Use a [background service](xref:fundamentals/host/hosted-services) such as * * @@ -189,7 +189,7 @@ Use a [background service](xref:fundamentals/host/hosted-services) such as @@ -159,7 +159,7 @@ When testing and troubleshooting caching behavior, a browser typically sets requ This article explains how to configure Response Caching Middleware in an ASP.NET Core app. The middleware determines when responses are cacheable, stores responses, and serves responses from cache. For an introduction to HTTP caching and the [`[ResponseCache]`](xref:Microsoft.AspNetCore.Mvc.ResponseCacheAttribute) attribute, see [Response Caching](xref:performance/caching/response). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/middleware/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/middleware/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Configuration diff --git a/aspnetcore/performance/caching/output.md b/aspnetcore/performance/caching/output.md index 9b6d2bebccd7..9bb405665e6b 100644 --- a/aspnetcore/performance/caching/output.md +++ b/aspnetcore/performance/caching/output.md @@ -20,7 +20,7 @@ This article explains how to configure output caching middleware in an ASP.NET C The output caching middleware can be used in all types of ASP.NET Core apps: Minimal API, Web API with controllers, MVC, and Razor Pages. Code examples are provided for minimal APIs and controller-based APIs. The controller-based API examples show how to use attributes to configure caching. These attributes can also be used in MVC and Razor Pages apps. -The code examples refer to a [Gravatar class](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/caching/output/samples/7.x/Gravatar.cs) that generates an image and provides a "generated at" date and time. The class is defined and used only in [the sample app](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/output/samples/7.x). Its purpose is to make it easy to see when cached output is being used. For more information, see [How to download a sample](xref:index#how-to-download-a-sample) and [Preprocessor directives in sample code](xref:index#preprocessor-directives-in-sample-code). +The code examples refer to a [Gravatar class](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/caching/output/samples/7.x/Gravatar.cs) that generates an image and provides a "generated at" date and time. The class is defined and used only in [the sample app](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/output/samples/7.x). Its purpose is to make it easy to see when cached output is being used. For more information, see [How to download a sample](xref:fundamentals/index#how-to-download-a-sample) and [Preprocessor directives in sample code](xref:index#preprocessor-directives-in-sample-code). ## Add the middleware to the app diff --git a/aspnetcore/performance/caching/response.md b/aspnetcore/performance/caching/response.md index 8dcbbaa35a0d..7892d3faca7a 100644 --- a/aspnetcore/performance/caching/response.md +++ b/aspnetcore/performance/caching/response.md @@ -13,7 +13,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Kirk Larkin](https://tw :::moniker range=">= aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/response/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/response/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) Response caching reduces the number of requests a client or proxy makes to a web server. Response caching also reduces the amount of work the web server performs to generate a response. Response caching is set in headers. @@ -196,7 +196,7 @@ The following code applies the `[ResponseCache]` attribute at the controller lev :::moniker range="< aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/response/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/caching/response/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) Response caching reduces the number of requests a client or proxy makes to a web server. Response caching also reduces the amount of work the web server performs to generate a response. Response caching is controlled by headers that specify how you want client, proxy, and middleware to cache responses. diff --git a/aspnetcore/performance/response-compression.md b/aspnetcore/performance/response-compression.md index 310e797c9b88..ef25f73e95a8 100644 --- a/aspnetcore/performance/response-compression.md +++ b/aspnetcore/performance/response-compression.md @@ -185,7 +185,7 @@ The sample app deployed to Azure has the following `Program.cs` file: [!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)] -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/response-compression/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/response-compression/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Response compression middleware source](https://github.com/dotnet/aspnetcore/tree/main/src/Middleware/ResponseCompression/src) * * [Mozilla Developer Network: Accept-Encoding](https://developer.mozilla.org/docs/Web/HTTP/Headers/Accept-Encoding) @@ -199,7 +199,7 @@ The sample app deployed to Azure has the following `Program.cs` file: Network bandwidth is a limited resource. Reducing the size of the response usually increases the responsiveness of an app, often dramatically. One way to reduce payload sizes is to compress an app's responses. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/response-compression/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/performance/response-compression/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## When to use Response Compression Middleware diff --git a/aspnetcore/razor-pages/filter.md b/aspnetcore/razor-pages/filter.md index 728230d1f76f..f189fd87c278 100644 --- a/aspnetcore/razor-pages/filter.md +++ b/aspnetcore/razor-pages/filter.md @@ -26,7 +26,7 @@ Razor Page filters: While page constructors and middleware enable executing custom code before a handler method executes, only Razor Page filters enable access to and the page. Middleware has access to the `HttpContext`, but not to the "page context". Filters have a derived parameter, which provides access to `HttpContext`. Here's a sample for a page filter: [Implement a filter attribute](#ifa) that adds a header to the response, something that can't be done with constructors or middleware. Access to the page context, which includes access to the instances of the page and it's model, are only available when executing filters, handlers, or the body of a Razor Page. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/filter/3.1sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/filter/3.1sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) Razor Page filters provide the following methods, which can be applied globally or at the page level: @@ -117,7 +117,7 @@ Razor Page filters: Code can be run before a handler method executes using the page constructor or middleware, but only Razor Page filters have access to . Filters have a derived parameter, which provides access to `HttpContext`. For example, the [Implement a filter attribute](#ifa) sample adds a header to the response, something that can't be done with constructors or middleware. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/filter/sample/PageFilter) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/filter/sample/PageFilter) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) Razor Page filters provide the following methods, which can be applied globally or at the page level: diff --git a/aspnetcore/razor-pages/razor-pages-conventions.md b/aspnetcore/razor-pages/razor-pages-conventions.md index 6e86304c91c4..be9d07505c27 100644 --- a/aspnetcore/razor-pages/razor-pages-conventions.md +++ b/aspnetcore/razor-pages/razor-pages-conventions.md @@ -18,7 +18,7 @@ To specify a page route, add route segments, or add parameters to a route, use t There are reserved words that can't be used as route segments or parameter names. For more information, see [Routing: Reserved routing names](xref:mvc/controllers/routing#reserved-routing-names). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) | Scenario | The sample demonstrates | | -------- | --------------------------- | @@ -303,7 +303,7 @@ To specify a page route, add route segments, or add parameters to a route, use t There are reserved words that can't be used as route segments or parameter names. For more information, see [Routing: Reserved routing names](xref:mvc/controllers/routing#reserved-routing-names). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) | Scenario | The sample demonstrates ... | | -------- | --------------------------- | @@ -584,7 +584,7 @@ To specify a page route, add route segments, or add parameters to a route, use t There are reserved words that can't be used as route segments or parameter names. For more information, see [Routing: Reserved routing names](xref:fundamentals/routing#reserved-routing-names). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) | Scenario | The sample demonstrates ... | | -------- | --------------------------- | diff --git a/aspnetcore/razor-pages/ui-class.md b/aspnetcore/razor-pages/ui-class.md index 19a8ce010df3..e004f342af97 100644 --- a/aspnetcore/razor-pages/ui-class.md +++ b/aspnetcore/razor-pages/ui-class.md @@ -163,7 +163,7 @@ When the app is published, the companion assets from all referenced projects and ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * diff --git a/aspnetcore/razor-pages/ui-class/includes/ui-class6.md b/aspnetcore/razor-pages/ui-class/includes/ui-class6.md index e9d86109b767..b7bdd8cdb976 100644 --- a/aspnetcore/razor-pages/ui-class/includes/ui-class6.md +++ b/aspnetcore/razor-pages/ui-class/includes/ui-class6.md @@ -158,7 +158,7 @@ When the app is published, the companion assets from all referenced projects and ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * @@ -169,7 +169,7 @@ When the app is published, the companion assets from all referenced projects and Razor views, pages, controllers, page models, [Razor components](xref:blazor/components/class-libraries), [View components](xref:mvc/views/view-components), and data models can be built into a Razor class library (RCL). The RCL can be packaged and reused. Applications can include the RCL and override the views and pages it contains. When a view, partial view, or Razor Page is found in both the web app and the RCL, the Razor markup (`.cshtml` file) in the web app takes precedence. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Create a class library containing Razor UI @@ -352,7 +352,7 @@ When the app is published, the companion assets from all referenced projects and Razor views, pages, controllers, page models, [Razor components](xref:blazor/components/class-libraries), [View components](xref:mvc/views/view-components), and data models can be built into a Razor class library (RCL). The RCL can be packaged and reused. Applications can include the RCL and override the views and pages it contains. When a view, partial view, or Razor Page is found in both the web app and the RCL, the Razor markup (`.cshtml` file) in the web app takes precedence. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Create a class library containing Razor UI @@ -558,7 +558,7 @@ Suppose `RazorUIClassLib/Pages/Shared` contains two partial files: `_Header.csht Razor views, pages, controllers, page models, [Razor components](xref:blazor/components/class-libraries), [View components](xref:mvc/views/view-components), and data models can be built into a Razor class library (RCL). The RCL can be packaged and reused. Applications can include the RCL and override the views and pages it contains. When a view, partial view, or Razor Page is found in both the web app and the RCL, the Razor markup (`.cshtml` file) in the web app takes precedence. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/ui-class/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Create a class library containing Razor UI diff --git a/aspnetcore/security/app-secrets.md b/aspnetcore/security/app-secrets.md index 48da93483124..71e86debf398 100644 --- a/aspnetcore/security/app-secrets.md +++ b/aspnetcore/security/app-secrets.md @@ -18,7 +18,7 @@ uid: security/app-secrets By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Kirk Larkin](https://twitter.com/serpent5) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/app-secrets/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/app-secrets/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) This article explains how to manage sensitive data for an ASP.NET Core app on a development machine. Never store passwords or other sensitive data in source code or configuration files. Production secrets shouldn't be used for development or test. Secrets shouldn't be deployed with the app. Production secrets should be accessed through a controlled means like Azure Key Vault. Azure test and production secrets can be stored and protected with the [Azure Key Vault configuration provider](xref:security/key-vault-configuration). diff --git a/aspnetcore/security/app-secrets/includes/app-secrets-3-5.md b/aspnetcore/security/app-secrets/includes/app-secrets-3-5.md index d77e8fa84075..a393059d94be 100644 --- a/aspnetcore/security/app-secrets/includes/app-secrets-3-5.md +++ b/aspnetcore/security/app-secrets/includes/app-secrets-3-5.md @@ -3,7 +3,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT), [Kirk Larkin](https://twitter.com/serpent5), [Daniel Roth](https://github.com/danroth27), and [Scott Addie](https://github.com/scottaddie) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/app-secrets/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/app-secrets/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) This article explains how to manage sensitive data for an ASP.NET Core app on a development machine. Never store passwords or other sensitive data in source code or configuration files. Production secrets shouldn't be used for development or test. Secrets shouldn't be deployed with the app. Production secrets should be accessed through a controlled means like Azure Key Vault. Azure test and production secrets can be stored and protected with the [Azure Key Vault configuration provider](xref:security/key-vault-configuration). diff --git a/aspnetcore/security/authentication/2fa.md b/aspnetcore/security/authentication/2fa.md index e84d717009a8..0e9def957635 100644 --- a/aspnetcore/security/authentication/2fa.md +++ b/aspnetcore/security/authentication/2fa.md @@ -17,7 +17,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Swiss-Devs](https://git This tutorial shows how to set up two-factor authentication (2FA) using SMS. Instructions are given for [twilio](https://www.twilio.com/) and ASPSMS (`https://www.aspsms.com/asp.net/identity/core/testcredits/`), but you can use any other SMS provider. We recommend you complete [Account Confirmation and Password Recovery](xref:security/authentication/accconfirm) before starting this tutorial. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/2fa/sample/Web2FA). [How to download](xref:index#how-to-download-a-sample). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/2fa/sample/Web2FA). [How to download](xref:fundamentals/index#how-to-download-a-sample). ## Create a new ASP.NET Core project diff --git a/aspnetcore/security/authentication/add-user-data.md b/aspnetcore/security/authentication/add-user-data.md index ef1fe1de43e9..3b61b8b0766d 100644 --- a/aspnetcore/security/authentication/add-user-data.md +++ b/aspnetcore/security/authentication/add-user-data.md @@ -18,7 +18,7 @@ This article shows how to: The project sample is created from a Razor Pages web app, but the instructions are similar for an ASP.NET Core MVC web app. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/add-user-data) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/add-user-data) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/security/authentication/cookie.md b/aspnetcore/security/authentication/cookie.md index 69bf12d04c26..9766dc32b1ba 100644 --- a/aspnetcore/security/authentication/cookie.md +++ b/aspnetcore/security/authentication/cookie.md @@ -15,7 +15,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) [ASP.NET Core Identity](xref:security/authentication/identity) is a complete, full-featured authentication provider for creating and maintaining logins. However, a cookie-based authentication provider without ASP.NET Core Identity can be used. For more information, see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/cookie/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/cookie/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) For demonstration purposes in the sample app, the user account for the hypothetical user, Maria Rodriguez, is hardcoded into the app. Use the **Email** address `maria.rodriguez@contoso.com` and any password to sign in the user. The user is authenticated in the `AuthenticateUser` method in the `Pages/Account/Login.cshtml.cs` file. In a real-world example, the user would be authenticated against a datastore. @@ -189,7 +189,7 @@ await HttpContext.SignInAsync( [ASP.NET Core Identity](xref:security/authentication/identity) is a complete, full-featured authentication provider for creating and maintaining logins. However, a cookie-based authentication provider without ASP.NET Core Identity can be used. For more information, see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/cookie/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/cookie/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) For demonstration purposes in the sample app, the user account for the hypothetical user, Maria Rodriguez, is hardcoded into the app. Use the **Email** address `maria.rodriguez@contoso.com` and any password to sign in the user. The user is authenticated in the `AuthenticateUser` method in the `Pages/Account/Login.cshtml.cs` file. In a real-world example, the user would be authenticated against a database. diff --git a/aspnetcore/security/authentication/identity.md b/aspnetcore/security/authentication/identity.md index 23aadff6983a..89660d46cf84 100644 --- a/aspnetcore/security/authentication/identity.md +++ b/aspnetcore/security/authentication/identity.md @@ -35,7 +35,7 @@ ASP.NET Core Identity isn't related to the [Microsoft identity platform](/azure/ [!INCLUDE[](~/includes/DuendeIdentityServer.md)] -[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). diff --git a/aspnetcore/security/authentication/identity/includes/identity6.md b/aspnetcore/security/authentication/identity/includes/identity6.md index f6aed54ba44b..1fe1beb6434e 100644 --- a/aspnetcore/security/authentication/identity/includes/identity6.md +++ b/aspnetcore/security/authentication/identity/includes/identity6.md @@ -24,7 +24,7 @@ ASP.NET Core Identity isn't related to the [Microsoft identity platform](/azure/ [!INCLUDE[](~/includes/DuendeIdentityServer.md)] -[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). @@ -273,7 +273,7 @@ In this topic, you learn how to use Identity to register, log in, and log out a [!INCLUDE[](~/includes/IdentityServer4.md)] -[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download the sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/identity/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). diff --git a/aspnetcore/security/authentication/social/additional-claims.md b/aspnetcore/security/authentication/social/additional-claims.md index 2d3ce52737c1..19d2df19a149 100644 --- a/aspnetcore/security/authentication/social/additional-claims.md +++ b/aspnetcore/security/authentication/social/additional-claims.md @@ -172,7 +172,7 @@ Authentication Properties [!INCLUDE[Forward request information when behind a proxy or load balancer section](includes/forwarded-headers-middleware.md)] -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end @@ -180,7 +180,7 @@ Authentication Properties An ASP.NET Core app can establish additional claims and tokens from external authentication providers, such as Facebook, Google, Microsoft, and Twitter. Each provider reveals different information about users on its platform, but the pattern for receiving and transforming user data into additional claims is the same. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites @@ -450,7 +450,7 @@ Authentication Properties An ASP.NET Core app can establish additional claims and tokens from external authentication providers, such as Facebook, Google, Microsoft, and Twitter. Each provider reveals different information about users on its platform, but the pattern for receiving and transforming user data into additional claims is the same. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authentication/social/additional-claims/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/security/authorization/razor-pages-authorization.md b/aspnetcore/security/authorization/razor-pages-authorization.md index 312e0aef181b..edd9f1b86a6a 100644 --- a/aspnetcore/security/authorization/razor-pages-authorization.md +++ b/aspnetcore/security/authorization/razor-pages-authorization.md @@ -14,7 +14,7 @@ uid: security/authorization/razor-pages-authorization One way to control access in your Razor Pages app is to use authorization conventions at startup. These conventions allow you to authorize users and allow anonymous users to access individual pages or folders of pages. The conventions described in this topic automatically apply [authorization filters](xref:mvc/controllers/filters#authorization-filters) to control access. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/razor-pages-authorization/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/razor-pages-authorization/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app uses [cookie authentication without ASP.NET Core Identity](xref:security/authentication/cookie). The concepts and examples shown in this topic apply equally to apps that use ASP.NET Core Identity. To use ASP.NET Core Identity, follow the guidance in . @@ -126,7 +126,7 @@ Requiring authorization on the Private page fails. When both the . diff --git a/aspnetcore/security/authorization/resourcebased.md b/aspnetcore/security/authorization/resourcebased.md index ad15ca5c3c93..731bfb15cc3d 100644 --- a/aspnetcore/security/authorization/resourcebased.md +++ b/aspnetcore/security/authorization/resourcebased.md @@ -15,7 +15,7 @@ Authorization approach depends on the resource. For example, only the author of Attribute evaluation occurs before data binding and before execution of the page handler or action that loads the document. For these reasons, declarative authorization with an `[Authorize]` attribute doesn't suffice. Instead, you can invoke a custom authorization method—a style known as *imperative authorization*. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/3_0) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/3_0) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). [Create an ASP.NET Core app with user data protected by authorization](xref:security/authorization/secure-data) contains a sample app that uses resource-based authorization. @@ -92,7 +92,7 @@ Authorization approach depends on the resource. For example, only the author of Attribute evaluation occurs before data binding and before execution of the page handler or action that loads the document. For these reasons, declarative authorization with an `[Authorize]` attribute doesn't suffice. Instead, you can invoke a custom authorization method—a style known as *imperative authorization*. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/3_0) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/3_0) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). [Create an ASP.NET Core app with user data protected by authorization](xref:security/authorization/secure-data) contains a sample app that uses resource-based authorization. @@ -169,7 +169,7 @@ Authorization approach depends on the resource. For example, only the author of Attribute evaluation occurs before data binding and before execution of the page handler or action that loads the document. For these reasons, declarative authorization with an `[Authorize]` attribute doesn't suffice. Instead, you can invoke a custom authorization method—a style known as *imperative authorization*. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/2_2) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/resourcebased/samples/2_2) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). [Create an ASP.NET Core app with user data protected by authorization](xref:security/authorization/secure-data) contains a sample app that uses resource-based authorization. diff --git a/aspnetcore/security/authorization/secure-data.md b/aspnetcore/security/authorization/secure-data.md index 3aedd3557c9b..6d7843f1b093 100644 --- a/aspnetcore/security/authorization/secure-data.md +++ b/aspnetcore/security/authorization/secure-data.md @@ -65,7 +65,7 @@ This tutorial is advanced. You should be familiar with: ## The starter and completed app -[Download](xref:index#how-to-download-a-sample) the [completed](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples) app. [Test](#test-the-completed-app) the completed app so you become familiar with its security features. +[Download](xref:fundamentals/index#how-to-download-a-sample) the [completed](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples) app. [Test](#test-the-completed-app) the completed app so you become familiar with its security features. > [!TIP] > Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only download the sample subfolder. @@ -79,7 +79,7 @@ git sparse-checkout set aspnetcore/security/authorization/secure-data/samples ### The starter app -[Download](xref:index#how-to-download-a-sample) the [starter](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/) app. +[Download](xref:fundamentals/index#how-to-download-a-sample) the [starter](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/) app. Run the app, tap the **ContactManager** link, and verify you can create, edit, and delete a contact. To create the starter app, see [Create the starter app](#create-the-starter-app). @@ -442,11 +442,11 @@ This tutorial is advanced. You should be familiar with: ## The starter and completed app -[Download](xref:index#how-to-download-a-sample) the [completed](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples) app. [Test](#test-the-completed-app) the completed app so you become familiar with its security features. +[Download](xref:fundamentals/index#how-to-download-a-sample) the [completed](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples) app. [Test](#test-the-completed-app) the completed app so you become familiar with its security features. ### The starter app -[Download](xref:index#how-to-download-a-sample) the [starter](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/) app. +[Download](xref:fundamentals/index#how-to-download-a-sample) the [starter](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/) app. Run the app, tap the **ContactManager** link, and verify you can create, edit, and delete a contact. To create the starter app, see [Create the starter app](#create-the-starter-app). diff --git a/aspnetcore/security/cors.md b/aspnetcore/security/cors.md index c4394e453c35..271c4a5f51ed 100644 --- a/aspnetcore/security/cors.md +++ b/aspnetcore/security/cors.md @@ -26,7 +26,7 @@ Browser security prevents a web page from making requests to a different domain * Allows a server to explicitly allow some cross-origin requests while rejecting others. * Is safer and more flexible than earlier techniques, such as [JSONP](/dotnet/framework/wcf/samples/jsonp). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Same origin @@ -539,7 +539,7 @@ needs to be installed and configured for the app. ## Test CORS -The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) has code to test CORS. See [how to download](xref:index#how-to-download-a-sample). The sample is an API project with Razor Pages added: +The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) has code to test CORS. See [how to download](xref:fundamentals/index#how-to-download-a-sample). The sample is an API project with Razor Pages added: [!code-csharp[](~/security/cors/8.0sample/Cors/Web2API/ProgramTest.cs?name=snippet_test)] diff --git a/aspnetcore/security/cors/includes/cors56.md b/aspnetcore/security/cors/includes/cors56.md index bfc050df28e7..d419d2e64010 100644 --- a/aspnetcore/security/cors/includes/cors56.md +++ b/aspnetcore/security/cors/includes/cors56.md @@ -14,7 +14,7 @@ Browser security prevents a web page from making requests to a different domain * Allows a server to explicitly allow some cross-origin requests while rejecting others. * Is safer and more flexible than earlier techniques, such as [JSONP](/dotnet/framework/wcf/samples/jsonp). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/6.0sample/Cors/WebAPI) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/6.0sample/Cors/WebAPI) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Same origin @@ -544,7 +544,7 @@ needs to be installed and configured for the app. ## Test CORS -The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) has code to test CORS. See [how to download](xref:index#how-to-download-a-sample). The sample is an API project with Razor Pages added: +The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) has code to test CORS. See [how to download](xref:fundamentals/index#how-to-download-a-sample). The sample is an API project with Razor Pages added: [!code-csharp[](~/security/cors/6.0sample/Cors/WebAPI/ProgramTest.cs?name=snippet_test)] @@ -638,7 +638,7 @@ Browser security prevents a web page from making requests to a different domain * Allows a server to explicitly allow some cross-origin requests while rejecting others. * Is safer and more flexible than earlier techniques, such as [JSONP](/dotnet/framework/wcf/samples/jsonp). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Same origin @@ -1148,7 +1148,7 @@ needs to be installed and configured for the app. ## Test CORS -The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) has code to test CORS. See [how to download](xref:index#how-to-download-a-sample). The sample is an API project with Razor Pages added: +The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI) has code to test CORS. See [how to download](xref:fundamentals/index#how-to-download-a-sample). The sample is an API project with Razor Pages added: [!code-csharp[](~/security/cors/3.1sample/Cors/WebAPI/StartupTest2.cs?name=snippet2)] diff --git a/aspnetcore/security/cors/includes/cors7.md b/aspnetcore/security/cors/includes/cors7.md index 03c05d41b72a..299bb7e767cd 100644 --- a/aspnetcore/security/cors/includes/cors7.md +++ b/aspnetcore/security/cors/includes/cors7.md @@ -13,7 +13,7 @@ Browser security prevents a web page from making requests to a different domain * Allows a server to explicitly allow some cross-origin requests while rejecting others. * Is safer and more flexible than earlier techniques, such as [JSONP](/dotnet/framework/wcf/samples/jsonp). -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Same origin @@ -536,7 +536,7 @@ needs to be installed and configured for the app. ## Test CORS -The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) has code to test CORS. See [how to download](xref:index#how-to-download-a-sample). The sample is an API project with Razor Pages added: +The [sample download](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/8.0sample/Cors/Web2API) has code to test CORS. See [how to download](xref:fundamentals/index#how-to-download-a-sample). The sample is an API project with Razor Pages added: [!code-csharp[](~/security/cors/8.0sample/Cors/Web2API/ProgramTest.cs?name=snippet_test)] diff --git a/aspnetcore/security/gdpr/includes/gdpr2.md b/aspnetcore/security/gdpr/includes/gdpr2.md index fb99230fdae0..bc7919a77f67 100644 --- a/aspnetcore/security/gdpr/includes/gdpr2.md +++ b/aspnetcore/security/gdpr/includes/gdpr2.md @@ -8,7 +8,7 @@ The [sample app](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/gdpr/sample) allows you to test most of the GDPR extension points and APIs added to the ASP.NET Core 2.1 templates. See the [ReadMe](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/gdpr/sample) file for testing instructions. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/gdpr/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/gdpr/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## ASP.NET Core GDPR support in template-generated code diff --git a/aspnetcore/security/ip-safelist.md b/aspnetcore/security/ip-safelist.md index eeb5bdb0b745..2aeeee456eea 100644 --- a/aspnetcore/security/ip-safelist.md +++ b/aspnetcore/security/ip-safelist.md @@ -25,7 +25,7 @@ In each case, a string containing approved client IP addresses is stored in an a Access is allowed if the array contains the IP address. Otherwise, an HTTP 403 Forbidden status code is returned. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/ip-safelist/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/ip-safelist/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## IP address safelist diff --git a/aspnetcore/security/key-vault-configuration.md b/aspnetcore/security/key-vault-configuration.md index d5bb0073e695..6b123ae04926 100644 --- a/aspnetcore/security/key-vault-configuration.md +++ b/aspnetcore/security/key-vault-configuration.md @@ -34,7 +34,7 @@ The sample app runs in either of two modes determined by the `#define` preproces For more information configuring a sample app using preprocessor directives (`#define`), see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Secret storage in the Development environment @@ -381,7 +381,7 @@ When the app fails to load configuration using the provider, an error message is ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * [Microsoft Azure: Key Vault Documentation](/azure/key-vault/) * [How to generate and transfer HSM-protected keys for Azure Key Vault](/azure/key-vault/key-vault-hsm-protected-keys) @@ -413,7 +413,7 @@ The sample app runs in either of two modes determined by the `#define` preproces For more information configuring a sample app using preprocessor directives (`#define`), see . -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Secret storage in the Development environment @@ -767,7 +767,7 @@ When the app fails to load configuration using the provider, an error message is ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/key-vault-configuration/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * [Microsoft Azure: Key Vault Documentation](/azure/key-vault/) * [How to generate and transfer HSM-protected keys for Azure Key Vault](/azure/key-vault/key-vault-hsm-protected-keys) diff --git a/aspnetcore/signalr/authn-and-authz.md b/aspnetcore/signalr/authn-and-authz.md index c4e1dbe07d97..e54523729aef 100644 --- a/aspnetcore/signalr/authn-and-authz.md +++ b/aspnetcore/signalr/authn-and-authz.md @@ -203,13 +203,13 @@ In the preceding example, the `DomainRestrictedRequirement` class is both an `IA * [Bearer Token Authentication in ASP.NET Core](https://blogs.msdn.microsoft.com/webdev/2016/10/27/bearer-token-authentication-in-asp-net-core/) * [Resource-based Authorization](xref:security/authorization/resourcebased) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/authn-and-authz/sample/) [(how to download)](xref:index#how-to-download-a-sample) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/authn-and-authz/sample/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) :::moniker-end :::moniker range="< aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/authn-and-authz/sample/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/authn-and-authz/sample/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Authenticate users connecting to a SignalR hub diff --git a/aspnetcore/signalr/background-services.md b/aspnetcore/signalr/background-services.md index 3f9010a8a5e9..06652a227530 100644 --- a/aspnetcore/signalr/background-services.md +++ b/aspnetcore/signalr/background-services.md @@ -19,7 +19,7 @@ This article provides guidance for: :::moniker range=">= aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/6.0) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/6.0) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Enable SignalR at app startup @@ -83,7 +83,7 @@ During the `IHostedService.StopAsync` method, the `HubConnection` is disposed of :::moniker range=">= aspnetcore-3.0 < aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/3.x) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/3.x) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Enable SignalR in startup @@ -146,7 +146,7 @@ During the `IHostedService.StopAsync` method, the `HubConnection` is disposed of :::moniker range="<= aspnetcore-2.2" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/2.2) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/background-service/samples/2.2) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Enable SignalR in startup diff --git a/aspnetcore/signalr/dotnet-client.md b/aspnetcore/signalr/dotnet-client.md index c436d94298f5..7effd2a23922 100644 --- a/aspnetcore/signalr/dotnet-client.md +++ b/aspnetcore/signalr/dotnet-client.md @@ -13,7 +13,7 @@ uid: signalr/dotnet-client The ASP.NET Core SignalR .NET client library lets you communicate with SignalR hubs from .NET apps. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/dotnet-client/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/dotnet-client/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The code sample in this article is a WPF app that uses the ASP.NET Core SignalR .NET client. diff --git a/aspnetcore/signalr/groups.md b/aspnetcore/signalr/groups.md index 2aaf429baa7f..9be2fe011cd0 100644 --- a/aspnetcore/signalr/groups.md +++ b/aspnetcore/signalr/groups.md @@ -15,7 +15,7 @@ By [Brennan Conroy](https://github.com/BrennanConroy) SignalR allows messages to be sent to all connections associated with a specific user and to named groups of connections. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/groups/sample/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/groups/sample/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Users in SignalR diff --git a/aspnetcore/signalr/hubcontext.md b/aspnetcore/signalr/hubcontext.md index 7a255a7a92ac..137e8d72be67 100644 --- a/aspnetcore/signalr/hubcontext.md +++ b/aspnetcore/signalr/hubcontext.md @@ -15,7 +15,7 @@ The SignalR hub is the core abstraction for sending messages to clients connecte > [!NOTE] > The `IHubContext` is for sending notifications to clients, it is not used to call methods on the `Hub`. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubcontext/sample/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubcontext/sample/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## Get an instance of `IHubContext` diff --git a/aspnetcore/signalr/hubs.md b/aspnetcore/signalr/hubs.md index cd5fcc77269e..af5862bb27ad 100644 --- a/aspnetcore/signalr/hubs.md +++ b/aspnetcore/signalr/hubs.md @@ -291,7 +291,7 @@ If an exceptional condition must be propagated to the client, use the * * diff --git a/aspnetcore/signalr/hubs/includes/hubs-2.1.md b/aspnetcore/signalr/hubs/includes/hubs-2.1.md index 9b5279b4fb72..50beab5bb82e 100644 --- a/aspnetcore/signalr/hubs/includes/hubs-2.1.md +++ b/aspnetcore/signalr/hubs/includes/hubs-2.1.md @@ -3,7 +3,7 @@ By [Rachel Appel](https://twitter.com/rachelappel) and [Kevin Griffin](https://twitter.com/1kevgriff) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubs/samples/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubs/samples/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## What is a SignalR hub diff --git a/aspnetcore/signalr/hubs/includes/hubs-3-5.md b/aspnetcore/signalr/hubs/includes/hubs-3-5.md index 02d4eab1944b..81dc3c5abed1 100644 --- a/aspnetcore/signalr/hubs/includes/hubs-3-5.md +++ b/aspnetcore/signalr/hubs/includes/hubs-3-5.md @@ -3,7 +3,7 @@ By [Rachel Appel](https://twitter.com/rachelappel) and [Kevin Griffin](https://twitter.com/1kevgriff) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubs/samples/) [(how to download)](xref:index#how-to-download-a-sample) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/hubs/samples/) [(how to download)](xref:fundamentals/index#how-to-download-a-sample) ## What is a SignalR hub diff --git a/aspnetcore/signalr/hubs/includes/hubs-6.md b/aspnetcore/signalr/hubs/includes/hubs-6.md index 1d9783ba47d0..917b2cc1bc6b 100644 --- a/aspnetcore/signalr/hubs/includes/hubs-6.md +++ b/aspnetcore/signalr/hubs/includes/hubs-6.md @@ -143,7 +143,7 @@ If an exceptional condition must be propagated to the client, use the * * diff --git a/aspnetcore/signalr/hubs/includes/hubs-7.md b/aspnetcore/signalr/hubs/includes/hubs-7.md index 2ad07360167f..1b3a6b324dea 100644 --- a/aspnetcore/signalr/hubs/includes/hubs-7.md +++ b/aspnetcore/signalr/hubs/includes/hubs-7.md @@ -273,7 +273,7 @@ If an exceptional condition must be propagated to the client, use the * * diff --git a/aspnetcore/signalr/java-client.md b/aspnetcore/signalr/java-client.md index 6dfe58096513..a595f4a10416 100644 --- a/aspnetcore/signalr/java-client.md +++ b/aspnetcore/signalr/java-client.md @@ -16,7 +16,7 @@ The Java client enables connecting to an ASP.NET Core SignalR server from Java c The sample Java console app referenced in this article uses the SignalR Java client. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/java-client/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/java-client/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Install the SignalR Java client package diff --git a/aspnetcore/signalr/javascript-client.md b/aspnetcore/signalr/javascript-client.md index 70a376b4cb00..0b063e07cfdb 100644 --- a/aspnetcore/signalr/javascript-client.md +++ b/aspnetcore/signalr/javascript-client.md @@ -317,7 +317,7 @@ For the preceding code example: ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [JavaScript API reference](/javascript/api/@microsoft/signalr) * [JavaScript tutorial](xref:tutorials/signalr) * [WebPack and TypeScript tutorial](xref:tutorials/signalr-typescript-webpack) @@ -336,7 +336,7 @@ By [Rachel Appel](https://twitter.com/rachelappel) The ASP.NET Core SignalR JavaScript client library enables developers to call server-side hub code. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Install the SignalR client package diff --git a/aspnetcore/signalr/streaming.md b/aspnetcore/signalr/streaming.md index f1e537e25a76..f2a09ca8b157 100644 --- a/aspnetcore/signalr/streaming.md +++ b/aspnetcore/signalr/streaming.md @@ -16,7 +16,7 @@ By [Brennan Conroy](https://github.com/BrennanConroy) ASP.NET Core SignalR supports streaming from client to server and from server to client. This is useful for scenarios where fragments of data arrive over time. When streaming, each fragment is sent to the client or server as soon as it becomes available, rather than waiting for all of the data to become available. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/signalr/streaming/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/signalr/streaming/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Set up a hub for streaming diff --git a/aspnetcore/test/integration-tests.md b/aspnetcore/test/integration-tests.md index 2d091c997440..42dbbd75cf06 100644 --- a/aspnetcore/test/integration-tests.md +++ b/aspnetcore/test/integration-tests.md @@ -19,7 +19,7 @@ Integration tests ensure that an app's components function correctly at a level This article assumes a basic understanding of unit tests. If unfamiliar with test concepts, see the [Testing in .NET](/dotnet/core/testing/) article and its linked content. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/10.x/IntegrationTestsSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/10.x/IntegrationTestsSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app is a Razor Pages app and assumes a basic understanding of Razor Pages. If you're unfamiliar with Razor Pages, see the following articles: diff --git a/aspnetcore/test/integration-tests/includes/integration-tests5.md b/aspnetcore/test/integration-tests/includes/integration-tests5.md index bce7c8404208..4cbadc11f150 100644 --- a/aspnetcore/test/integration-tests/includes/integration-tests5.md +++ b/aspnetcore/test/integration-tests/includes/integration-tests5.md @@ -2,7 +2,7 @@ This topic assumes a basic understanding of unit tests. If unfamiliar with test concepts, see the [Unit Testing in .NET Core and .NET Standard](/dotnet/core/testing/) topic and its linked content. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/integration-tests/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/integration-tests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app is a Razor Pages app and assumes a basic understanding of Razor Pages. If unfamiliar with Razor Pages, see the following topics: diff --git a/aspnetcore/test/integration-tests/includes/integration-tests7.md b/aspnetcore/test/integration-tests/includes/integration-tests7.md index 4a4ee05978da..c220233d291a 100644 --- a/aspnetcore/test/integration-tests/includes/integration-tests7.md +++ b/aspnetcore/test/integration-tests/includes/integration-tests7.md @@ -2,7 +2,7 @@ This article assumes a basic understanding of unit tests. If unfamiliar with test concepts, see the [Testing in .NET](/dotnet/core/testing/) article and its linked content. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/7.x/IntegrationTestsSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/7.x/IntegrationTestsSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app is a Razor Pages app and assumes a basic understanding of Razor Pages. If you're unfamiliar with Razor Pages, see the following articles: diff --git a/aspnetcore/test/integration-tests/includes/integration-tests8.md b/aspnetcore/test/integration-tests/includes/integration-tests8.md index 59f9c70dac12..85ca18efa421 100644 --- a/aspnetcore/test/integration-tests/includes/integration-tests8.md +++ b/aspnetcore/test/integration-tests/includes/integration-tests8.md @@ -2,7 +2,7 @@ This article assumes a basic understanding of unit tests. If unfamiliar with test concepts, see the [Testing in .NET](/dotnet/core/testing/) article and its linked content. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/8.x/IntegrationTestsSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/8.x/IntegrationTestsSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app is a Razor Pages app and assumes a basic understanding of Razor Pages. If you're unfamiliar with Razor Pages, see the following articles: diff --git a/aspnetcore/test/integration-tests/includes/integration-tests9.md b/aspnetcore/test/integration-tests/includes/integration-tests9.md index 929a41caeabb..ec24c893ce45 100644 --- a/aspnetcore/test/integration-tests/includes/integration-tests9.md +++ b/aspnetcore/test/integration-tests/includes/integration-tests9.md @@ -2,7 +2,7 @@ This article assumes a basic understanding of unit tests. If unfamiliar with test concepts, see the [Testing in .NET](/dotnet/core/testing/) article and its linked content. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/9.x/IntegrationTestsSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/9.x/IntegrationTestsSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample app is a Razor Pages app and assumes a basic understanding of Razor Pages. If you're unfamiliar with Razor Pages, see the following articles: diff --git a/aspnetcore/test/razor-pages-tests.md b/aspnetcore/test/razor-pages-tests.md index 6b01c53c6555..78e1ff49dd25 100644 --- a/aspnetcore/test/razor-pages-tests.md +++ b/aspnetcore/test/razor-pages-tests.md @@ -25,7 +25,7 @@ This topic assumes that you have a basic understanding of Razor Pages apps and u * * [Testing with `dotnet test`](/dotnet/core/testing/unit-testing-with-dotnet-test) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/razor-pages-tests/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/razor-pages-tests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample project is composed of two apps: @@ -208,7 +208,7 @@ This topic assumes that you have a basic understanding of Razor Pages apps and u * * [Testing with `dotnet test`](/dotnet/core/testing/unit-testing-with-dotnet-test) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/razor-pages-tests/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/razor-pages-tests/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) The sample project is composed of two apps: diff --git a/aspnetcore/tutorials/first-mongo-app.md b/aspnetcore/tutorials/first-mongo-app.md index 4c4ebfcd9b3f..f5538f6eb250 100644 --- a/aspnetcore/tutorials/first-mongo-app.md +++ b/aspnetcore/tutorials/first-mongo-app.md @@ -527,7 +527,7 @@ The OpenAPI specification is a document in JSON format that describes the struct ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * [Create a web API with ASP.NET Core](/training/modules/build-web-api-aspnet-core/) diff --git a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app3-5.md b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app3-5.md index 1395e50803e6..9f65679800a4 100644 --- a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app3-5.md +++ b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app3-5.md @@ -11,7 +11,7 @@ In this tutorial, you learn how to: > * Perform MongoDB CRUD operations from a web API > * Customize JSON serialization -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites @@ -354,7 +354,7 @@ To satisfy the preceding requirements, make the following changes: For more information on building ASP.NET Core web APIs, see the following resources: -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [YouTube version of this article](https://www.youtube.com/watch?v=7uJt_sOenyo&feature=youtu.be) * * diff --git a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app6.md b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app6.md index b6173c0c6d0b..351a833ef08e 100644 --- a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app6.md +++ b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app6.md @@ -319,7 +319,7 @@ To satisfy the preceding requirements, make the following changes: ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/6.x/BookStoreApi) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/6.x/BookStoreApi) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * [Create a web API with ASP.NET Core](/training/modules/build-web-api-aspnet-core/) diff --git a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app7.md b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app7.md index 92c198a4564b..9cb0cdfffc5e 100644 --- a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app7.md +++ b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app7.md @@ -320,7 +320,7 @@ To satisfy the preceding requirements, make the following changes: ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/7.x/BookStoreApi) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/7.x/BookStoreApi) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * [Create a web API with ASP.NET Core](/training/modules/build-web-api-aspnet-core/) diff --git a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app8.md b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app8.md index 8c49e53c3f44..ef839c120fb3 100644 --- a/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app8.md +++ b/aspnetcore/tutorials/first-mongo-app/includes/first-mongo-app8.md @@ -311,7 +311,7 @@ To satisfy the preceding requirements, make the following changes: ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/8.x/BookStoreApi) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mongo-app/samples/8.x/BookStoreApi) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * * * [Create a web API with ASP.NET Core](/training/modules/build-web-api-aspnet-core/) diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc.md b/aspnetcore/tutorials/first-mvc-app/start-mvc.md index 07efaea4b7e4..efc2c5d5439e 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc.md @@ -27,7 +27,7 @@ At the end of the series, you'll have an app that manages, validates, and displa > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc3.md b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc3.md index 64f1a7bd8e08..49f450dac3a8 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc3.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc3.md @@ -12,7 +12,7 @@ At the end of the series, you'll have an app that manages and displays movie dat > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc5.md b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc5.md index 69fb523fe01b..7440b277fe8d 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc5.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc5.md @@ -12,7 +12,7 @@ At the end of the series, you'll have an app that manages and displays movie dat > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc6.md b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc6.md index 6b82d2d4284d..cf43075e0c55 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc6.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc6.md @@ -12,7 +12,7 @@ At the end of the series, you'll have an app that manages and displays movie dat > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc7.md b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc7.md index a0fd3ef20702..47c71691419c 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc7.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc7.md @@ -12,7 +12,7 @@ At the end of the series, you'll have an app that manages and displays movie dat > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc8.md b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc8.md index 8634c8316c23..a20ff8c02928 100644 --- a/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc8.md +++ b/aspnetcore/tutorials/first-mvc-app/start-mvc/includes/start-mvc8.md @@ -12,7 +12,7 @@ At the end of the series, you'll have an app that manages and displays movie dat > * Work with a database. > * Add search and validation. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-mvc-app/start-mvc/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/tutorials/first-web-api.md b/aspnetcore/tutorials/first-web-api.md index 53392be102b4..50a12500dbe0 100644 --- a/aspnetcore/tutorials/first-web-api.md +++ b/aspnetcore/tutorials/first-web-api.md @@ -824,7 +824,7 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap ## Additional resources -[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:index#how-to-download-a-sample). +[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:fundamentals/index#how-to-download-a-sample). For more information, see the following resources: diff --git a/aspnetcore/tutorials/first-web-api/includes/first-web-api7.md b/aspnetcore/tutorials/first-web-api/includes/first-web-api7.md index a8ef7c00b455..aeb4afbc26c9 100644 --- a/aspnetcore/tutorials/first-web-api/includes/first-web-api7.md +++ b/aspnetcore/tutorials/first-web-api/includes/first-web-api7.md @@ -512,7 +512,7 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap ## Additional resources -[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:index#how-to-download-a-sample). +[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:fundamentals/index#how-to-download-a-sample). For more information, see the following resources: diff --git a/aspnetcore/tutorials/first-web-api/includes/first-web-api8.md b/aspnetcore/tutorials/first-web-api/includes/first-web-api8.md index f0e971bbc6a7..da3568a5baae 100644 --- a/aspnetcore/tutorials/first-web-api/includes/first-web-api8.md +++ b/aspnetcore/tutorials/first-web-api/includes/first-web-api8.md @@ -468,7 +468,7 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap ## Additional resources -[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:index#how-to-download-a-sample). +[View or download sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/first-web-api/samples). See [how to download](xref:fundamentals/index#how-to-download-a-sample). For more information, see the following resources: diff --git a/aspnetcore/tutorials/getting-started-with-NSwag.md b/aspnetcore/tutorials/getting-started-with-NSwag.md index 8dd7d8e5284f..481b0b8ca7a0 100644 --- a/aspnetcore/tutorials/getting-started-with-NSwag.md +++ b/aspnetcore/tutorials/getting-started-with-NSwag.md @@ -14,7 +14,7 @@ uid: tutorials/get-started-with-nswag By [Rico Suter](https://rsuter.com) and [Dave Brock](https://twitter.com/daveabrock) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/7.x/NSwagSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/7.x/NSwagSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) NSwag offers the following capabilities: @@ -233,7 +233,7 @@ Run the application and navigate to `http://localhost:/redoc` to view the By [Rico Suter](https://rsuter.com) and [Dave Brock](https://twitter.com/daveabrock) -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/2.1/TodoApi.NSwag) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/2.1/TodoApi.NSwag) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) NSwag offers the following capabilities: diff --git a/aspnetcore/tutorials/getting-started-with-swashbuckle/includes/getting-started-with-swashbuckle8.md b/aspnetcore/tutorials/getting-started-with-swashbuckle/includes/getting-started-with-swashbuckle8.md index 19a0ad062a1e..8b13ee452c1b 100644 --- a/aspnetcore/tutorials/getting-started-with-swashbuckle/includes/getting-started-with-swashbuckle8.md +++ b/aspnetcore/tutorials/getting-started-with-swashbuckle/includes/getting-started-with-swashbuckle8.md @@ -231,14 +231,14 @@ To inject additional CSS stylesheets, add them to the project's *wwwroot* folder ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) * [Improve the developer experience of an API with Swagger documentation](/training/modules/improve-api-developer-experience-with-swagger/) :::moniker-end :::moniker range="< aspnetcore-6.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/web-api-help-pages-using-swagger/samples/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) There are three main components to Swashbuckle: diff --git a/aspnetcore/tutorials/grpc/grpc-start.md b/aspnetcore/tutorials/grpc/grpc-start.md index bd616a6129f3..c8fddcf67374 100644 --- a/aspnetcore/tutorials/grpc/grpc-start.md +++ b/aspnetcore/tutorials/grpc/grpc-start.md @@ -271,7 +271,7 @@ info: Microsoft.AspNetCore.Hosting.Diagnostics[2] ### Next steps -* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:index#how-to-download-a-sample)). +* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * * * diff --git a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start3.md b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start3.md index 42c8d83f952d..13c1f366ae1d 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start3.md +++ b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start3.md @@ -4,7 +4,7 @@ This tutorial shows how to create a .NET Core [gRPC](xref:grpc/index) client and At the end, you'll have a gRPC client that communicates with the gRPC Greeter service. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). In this tutorial, you: diff --git a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start5.md b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start5.md index 5c5c1bad4fed..fd45304d984f 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start5.md +++ b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start5.md @@ -4,7 +4,7 @@ This tutorial shows how to create a .NET [gRPC](xref:grpc/index) client and an A At the end, you'll have a gRPC client that communicates with the gRPC Greeter service. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). In this tutorial, you: diff --git a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start6.md b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start6.md index 94d4b2e45fb3..f018847c1a3d 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start6.md +++ b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start6.md @@ -305,7 +305,7 @@ Update the `appsettings.Development.json` file by adding the following lines: ### Next steps -* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample/sample6) ([how to download](xref:index#how-to-download-a-sample)). +* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample/sample6) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * * * diff --git a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start7.md b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start7.md index 93413ac80e5d..f39b58526ee6 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start7.md +++ b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start7.md @@ -303,7 +303,7 @@ info: Microsoft.AspNetCore.Hosting.Diagnostics[2] ### Next steps -* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample/sample6) ([how to download](xref:index#how-to-download-a-sample)). +* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample/sample6) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * * * diff --git a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start8.md b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start8.md index 13c362836e55..41d87db8311f 100644 --- a/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start8.md +++ b/aspnetcore/tutorials/grpc/grpc-start/includes/grpc-start8.md @@ -260,7 +260,7 @@ info: Microsoft.AspNetCore.Hosting.Diagnostics[2] ### Next steps -* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:index#how-to-download-a-sample)). +* View or download [the completed sample code for this tutorial](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). * * * diff --git a/aspnetcore/tutorials/min-web-api.md b/aspnetcore/tutorials/min-web-api.md index b9ad3f661f0c..8c0be13400eb 100644 --- a/aspnetcore/tutorials/min-web-api.md +++ b/aspnetcore/tutorials/min-web-api.md @@ -659,7 +659,7 @@ Verify you can post and get all fields except the secret field. ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/min-web-api/includes/min-web-api6-7.md b/aspnetcore/tutorials/min-web-api/includes/min-web-api6-7.md index 96919f0bcd79..59947234812b 100644 --- a/aspnetcore/tutorials/min-web-api/includes/min-web-api6-7.md +++ b/aspnetcore/tutorials/min-web-api/includes/min-web-api6-7.md @@ -436,7 +436,7 @@ Verify you can post and get all fields except the secret field. ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/min-web-api/includes/min-web-api8.md b/aspnetcore/tutorials/min-web-api/includes/min-web-api8.md index b396f23727ba..c3e3d2a2b371 100644 --- a/aspnetcore/tutorials/min-web-api/includes/min-web-api8.md +++ b/aspnetcore/tutorials/min-web-api/includes/min-web-api8.md @@ -637,7 +637,7 @@ Verify you can post and get all fields except the secret field. ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/min-web-api/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/model.md b/aspnetcore/tutorials/razor-pages/model.md index 821d522e46a6..552d27750aa7 100644 --- a/aspnetcore/tutorials/razor-pages/model.md +++ b/aspnetcore/tutorials/razor-pages/model.md @@ -277,7 +277,7 @@ The scaffolding tool automatically created a database context and registered it ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie90) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie90) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model3.md b/aspnetcore/tutorials/razor-pages/model/includes/model3.md index cebe85fcaa8f..823c13b40938 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model3.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model3.md @@ -6,7 +6,7 @@ In this section, classes are added for managing movies. The app's model classes The model classes are known as POCO classes (from "plain-old CLR objects") because they don't have any dependency on EF Core. They define the properties of the data that are stored in the database. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). [!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model5.md b/aspnetcore/tutorials/razor-pages/model/includes/model5.md index 6fa369811d00..ef14764a777e 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model5.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model5.md @@ -6,7 +6,7 @@ In this section, classes are added for managing movies in a database. The app's The model classes are known as POCO classes (from "**P**lain-**O**ld **C**LR **O**bjects") because they don't have a dependency on EF Core. They define the properties of the data that are stored in the database. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie50) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie50) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Add a data model diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model6.md b/aspnetcore/tutorials/razor-pages/model/includes/model6.md index ba50ed306c3f..b15714555e43 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model6.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model6.md @@ -304,7 +304,7 @@ The next tutorial explains the files created by scaffolding. ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie60) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie60) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model7.md b/aspnetcore/tutorials/razor-pages/model/includes/model7.md index 88239e8f6171..9a0ac64c4c54 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model7.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model7.md @@ -362,7 +362,7 @@ The scaffolding tool automatically created a database context and registered it ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie70) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie70) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model8.md b/aspnetcore/tutorials/razor-pages/model/includes/model8.md index 5ff74bc17e73..349c89003355 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model8.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model8.md @@ -266,7 +266,7 @@ The scaffolding tool automatically created a database context and registered it ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie80) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie80) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/new-field/includes/new-field3.md b/aspnetcore/tutorials/razor-pages/new-field/includes/new-field3.md index 2b0a546fdfc3..f2f4df8735d8 100644 --- a/aspnetcore/tutorials/razor-pages/new-field/includes/new-field3.md +++ b/aspnetcore/tutorials/razor-pages/new-field/includes/new-field3.md @@ -1,6 +1,6 @@ :::moniker range="< aspnetcore-5.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Code First Migrations is used to: diff --git a/aspnetcore/tutorials/razor-pages/new-field/includes/new-field5.md b/aspnetcore/tutorials/razor-pages/new-field/includes/new-field5.md index 4b7a879acd06..aa3726419813 100644 --- a/aspnetcore/tutorials/razor-pages/new-field/includes/new-field5.md +++ b/aspnetcore/tutorials/razor-pages/new-field/includes/new-field5.md @@ -1,6 +1,6 @@ :::moniker range="= aspnetcore-5.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie50) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie50) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Code First Migrations is used to: diff --git a/aspnetcore/tutorials/razor-pages/razor-pages-start.md b/aspnetcore/tutorials/razor-pages/razor-pages-start.md index f9b54b158d6b..d7518065d767 100644 --- a/aspnetcore/tutorials/razor-pages/razor-pages-start.md +++ b/aspnetcore/tutorials/razor-pages/razor-pages-start.md @@ -185,7 +185,7 @@ The following code enables various [Middleware](xref:fundamentals/middleware/ind ## Troubleshooting with the completed sample -If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie90) ([how to download](xref:index#how-to-download-a-sample)). +If you run into a problem you can't resolve, compare your code to the completed project. [View or download completed project](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie90) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Next steps diff --git a/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start3.md b/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start3.md index 5bbadce8103d..68e38c947aef 100644 --- a/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start3.md +++ b/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start3.md @@ -6,7 +6,7 @@ For a more advanced introduction aimed at developers who are familiar with contr At the end of the series, you'll have an app that manages a database of movies. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). In this tutorial, you: diff --git a/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start5.md b/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start5.md index b6dc93c1f013..5ca1dd5f7eff 100644 --- a/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start5.md +++ b/aspnetcore/tutorials/razor-pages/razor-pages-start/includes/razor-pages-start5.md @@ -142,7 +142,7 @@ Contains code that configures app behavior. For more information, see * Configure the SignalR TypeScript client > * Enable communication between the client and the server -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack2.1-5.md b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack2.1-5.md index b9016bf0f05f..d4bc6b2f087b 100644 --- a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack2.1-5.md +++ b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack2.1-5.md @@ -11,7 +11,7 @@ In this tutorial, you learn how to: > * Configure the SignalR server > * Enable communication between client and server -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites @@ -288,7 +288,7 @@ In this tutorial, you learn how to: > * Configure the SignalR server > * Enable communication between client and server -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack6.md b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack6.md index ecb564ef7691..b2c476225444 100644 --- a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack6.md +++ b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack6.md @@ -11,7 +11,7 @@ In this tutorial, you learn how to: > * Configure the SignalR TypeScript client > * Enable communication between the client and the server -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack7.md b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack7.md index e73407f8cb69..4c14e43297f6 100644 --- a/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack7.md +++ b/aspnetcore/tutorials/signalr-typescript-webpack/includes/signalr-typescript-webpack7.md @@ -11,7 +11,7 @@ In this tutorial, you learn how to: > * Configure the SignalR TypeScript client > * Enable communication between the client and the server -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/tutorials/signalr-typescript-webpack/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Prerequisites diff --git a/aspnetcore/tutorials/signalr.md b/aspnetcore/tutorials/signalr.md index 31bb53f54853..9517778a9ff4 100644 --- a/aspnetcore/tutorials/signalr.md +++ b/aspnetcore/tutorials/signalr.md @@ -222,7 +222,7 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap * [Use hubs](xref:signalr/hubs) * [Strongly typed hubs](xref:signalr/hubs#strongly-typed-hubs) * [Authentication and authorization in ASP.NET Core SignalR](xref:signalr/authn-and-authz) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end diff --git a/aspnetcore/tutorials/signalr/includes/signalr3-5.md b/aspnetcore/tutorials/signalr/includes/signalr3-5.md index 9395badc59b4..1d5a811fcb06 100644 --- a/aspnetcore/tutorials/signalr/includes/signalr3-5.md +++ b/aspnetcore/tutorials/signalr/includes/signalr3-5.md @@ -231,6 +231,6 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap * [Use hubs](xref:signalr/hubs) * [Strongly typed hubs](xref:signalr/hubs#strongly-typed-hubs) * [Authentication and authorization in ASP.NET Core SignalR](xref:signalr/authn-and-authz) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end diff --git a/aspnetcore/tutorials/signalr/includes/signalr6.md b/aspnetcore/tutorials/signalr/includes/signalr6.md index 50e84e59ec05..88a6cc2149e3 100644 --- a/aspnetcore/tutorials/signalr/includes/signalr6.md +++ b/aspnetcore/tutorials/signalr/includes/signalr6.md @@ -266,6 +266,6 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap * [Use hubs](xref:signalr/hubs) * [Strongly typed hubs](xref:signalr/hubs#strongly-typed-hubs) * [Authentication and authorization in ASP.NET Core SignalR](xref:signalr/authn-and-authz) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end diff --git a/aspnetcore/tutorials/signalr/includes/signalr7.md b/aspnetcore/tutorials/signalr/includes/signalr7.md index 373fbb76f2a7..0aa35f089a61 100644 --- a/aspnetcore/tutorials/signalr/includes/signalr7.md +++ b/aspnetcore/tutorials/signalr/includes/signalr7.md @@ -263,6 +263,6 @@ For information on deploying to Azure, see [Quickstart: Deploy an ASP.NET web ap * [Use hubs](xref:signalr/hubs) * [Strongly typed hubs](xref:signalr/hubs#strongly-typed-hubs) * [Authentication and authorization in ASP.NET Core SignalR](xref:signalr/authn-and-authz) -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/signalr/javascript-client/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end diff --git a/aspnetcore/web-api/action-return-types.md b/aspnetcore/web-api/action-return-types.md index 0ebdb4e59206..f0fe8780d9af 100644 --- a/aspnetcore/web-api/action-return-types.md +++ b/aspnetcore/web-api/action-return-types.md @@ -14,7 +14,7 @@ uid: web-api/action-return-types :::moniker range=">= aspnetcore-8.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/mvc/action-return-types/) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/mvc/action-return-types/) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ASP.NET Core provides the following options for web API controller action return types: diff --git a/aspnetcore/web-api/action-return-types/includes/action-return-types7.md b/aspnetcore/web-api/action-return-types/includes/action-return-types7.md index 9711a55d3847..13afa11e4116 100644 --- a/aspnetcore/web-api/action-return-types/includes/action-return-types7.md +++ b/aspnetcore/web-api/action-return-types/includes/action-return-types7.md @@ -1,7 +1,7 @@ :::moniker range="= aspnetcore-7.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/mvc/action-return-types/7.x/WebApiSample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/mvc/action-return-types/7.x/WebApiSample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ASP.NET Core provides the following options for web API controller action return types: @@ -207,7 +207,7 @@ In the preceding action: :::moniker range="< aspnetcore-7.0" -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/action-return-types/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/action-return-types/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ASP.NET Core offers the following options for web API controller action return types: diff --git a/aspnetcore/web-api/advanced/conventions.md b/aspnetcore/web-api/advanced/conventions.md index 982265c27a82..75d705f3ce8c 100644 --- a/aspnetcore/web-api/advanced/conventions.md +++ b/aspnetcore/web-api/advanced/conventions.md @@ -25,7 +25,7 @@ Actions that follow the patterns in the `ValuesController.cs` work with the defa At runtime, understands conventions. `ApiExplorer` is MVC's abstraction to communicate with [OpenAPI](https://www.openapis.org/) (also known as Swagger) document generators. Attributes from the applied convention are associated with an action and are included in the action's OpenAPI documentation. [API analyzers](xref:web-api/advanced/analyzers) also understand conventions. If your action is unconventional (for example, it returns a status code that isn't documented by the applied convention), a warning encourages you to document the status code. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/conventions/sample) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/conventions/sample) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Apply web API conventions diff --git a/aspnetcore/web-api/advanced/custom-formatters.md b/aspnetcore/web-api/advanced/custom-formatters.md index 94d2aa252003..b9b58721cd21 100644 --- a/aspnetcore/web-api/advanced/custom-formatters.md +++ b/aspnetcore/web-api/advanced/custom-formatters.md @@ -17,7 +17,7 @@ The framework provides built-in input and output formatters for JSON and XML. It This article shows how to add support for additional formats by creating custom formatters. For an example of a custom plain text input formatter, see [TextPlainInputFormatter](https://github.com/aspnet/Entropy/blob/master/samples/Mvc.Formatters/TextPlainInputFormatter.cs) on GitHub. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/custom-formatters/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/custom-formatters/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## When to use a custom formatter @@ -141,7 +141,7 @@ The framework provides built-in input and output formatters for JSON and XML. It This article shows how to add support for additional formats by creating custom formatters. For an example of a custom plain text input formatter, see [TextPlainInputFormatter](https://github.com/aspnet/Entropy/blob/master/samples/Mvc.Formatters/TextPlainInputFormatter.cs) on GitHub. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/custom-formatters/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/custom-formatters/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## When to use a custom formatter diff --git a/aspnetcore/web-api/advanced/formatting.md b/aspnetcore/web-api/advanced/formatting.md index fdcbc4e77b25..23a78a686c99 100644 --- a/aspnetcore/web-api/advanced/formatting.md +++ b/aspnetcore/web-api/advanced/formatting.md @@ -212,7 +212,7 @@ Built-in features provide a limited range of polymorphic serialization but no su ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end @@ -220,7 +220,7 @@ Built-in features provide a limited range of polymorphic serialization but no su ASP.NET Core MVC has support for formatting response data. Response data can be formatted using specific formats or in response to client requested format. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:index#how-to-download-a-sample)) +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) ## Format-specific Action Results @@ -674,6 +674,6 @@ Built-in features provide a limited range of polymorphic serialization but no su ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:index#how-to-download-a-sample)) +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/advanced/formatting/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)) :::moniker-end diff --git a/aspnetcore/web-api/http-repl/index.md b/aspnetcore/web-api/http-repl/index.md index 24f76359d251..6b3d72adfa7c 100644 --- a/aspnetcore/web-api/http-repl/index.md +++ b/aspnetcore/web-api/http-repl/index.md @@ -26,7 +26,7 @@ The following [HTTP verbs](https://github.com/microsoft/api-guidelines/blob/vNex * [POST](#test-http-post-requests) * [PUT](#test-http-put-requests) -To follow along, [view or download the sample ASP.NET Core web API](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/http-repl/samples) ([how to download](xref:index#how-to-download-a-sample)). +To follow along, [view or download the sample ASP.NET Core web API](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/http-repl/samples) ([how to download](xref:fundamentals/index#how-to-download-a-sample)). ## Prerequisites diff --git a/aspnetcore/web-api/index.md b/aspnetcore/web-api/index.md index 5aec9a0a2a72..d088754f67ec 100644 --- a/aspnetcore/web-api/index.md +++ b/aspnetcore/web-api/index.md @@ -303,7 +303,7 @@ The `[Consumes]` attribute is applied to both actions. The `PostJson` action han ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:index#how-to-download-a-sample)). +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). * * * @@ -582,7 +582,7 @@ The `[Consumes]` attribute is applied to both actions. The `PostJson` action han ## Additional resources -* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:index#how-to-download-a-sample)). +* [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). * * * @@ -598,7 +598,7 @@ The `[Consumes]` attribute is applied to both actions. The `PostJson` action han ASP.NET Core supports creating RESTful services, also known as web APIs, using C#. To handle requests, a web API uses controllers. *Controllers* in a web API are classes that derive from `ControllerBase`. This article shows how to use controllers for handling web API requests. -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/index/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). ## ControllerBase class diff --git a/aspnetcore/web-api/jsonpatch.md b/aspnetcore/web-api/jsonpatch.md index 865a6c883e1a..992114e23735 100644 --- a/aspnetcore/web-api/jsonpatch.md +++ b/aspnetcore/web-api/jsonpatch.md @@ -309,7 +309,7 @@ public void Validate(JsonPatchDocument patch) ## Get the code -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). To test the sample, run the app and send HTTP requests with the following settings: diff --git a/aspnetcore/web-api/jsonpatch/includes/jsonpatch9.md b/aspnetcore/web-api/jsonpatch/includes/jsonpatch9.md index fc6b9ba8cd95..e6fefc3d44d6 100644 --- a/aspnetcore/web-api/jsonpatch/includes/jsonpatch9.md +++ b/aspnetcore/web-api/jsonpatch/includes/jsonpatch9.md @@ -230,7 +230,7 @@ The following sample patch document has no effect if the initial value of `Custo ## Get the code -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). To test the sample, run the app and send HTTP requests with the following settings: @@ -522,7 +522,7 @@ The following sample patch document has no effect if the initial value of `Custo ## Get the code -[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:index#how-to-download-a-sample)). +[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/web-api/jsonpatch/samples). ([How to download](xref:fundamentals/index#how-to-download-a-sample)). To test the sample, run the app and send HTTP requests with the following settings: