Skip to content

Commit 3d07e21

Browse files
authored
Merge pull request #17891 from dotnet/master
Update live with master
2 parents 636efd1 + 230aa08 commit 3d07e21

4 files changed

Lines changed: 27 additions & 32 deletions

File tree

aspnetcore/host-and-deploy/iis/index.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ description: Learn how to host ASP.NET Core apps on Windows Server Internet Info
55
monikerRange: '>= aspnetcore-2.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 02/07/2020
8+
ms.date: 04/17/2020
99
uid: host-and-deploy/iis/index
1010
---
1111
# Host ASP.NET Core on Windows with IIS
1212

13+
<!--
14+
15+
NOTE FOR 5.0
16+
17+
When making the 5.0 version of this topic, remove the Hosting Bundle
18+
direct download section from the (new) <5.0 & >2.2 version and modify
19+
the text and heading for the *Earlier versions of the installer*
20+
section. See the 2.2 version for an example.
21+
22+
-->
23+
1324
::: moniker range=">= aspnetcore-3.0"
1425

1526
For a tutorial experience on publishing an ASP.NET Core app to an IIS server, see <xref:tutorials/publish-to-iis>.
@@ -244,9 +255,9 @@ Download the installer using the following link:
244255
To obtain an earlier version of the installer:
245256

246257
1. Navigate to the [Download .NET Core](https://dotnet.microsoft.com/download/dotnet-core) page.
247-
1. Click on the desired .NET Core version.
258+
1. Select the desired .NET Core version.
248259
1. In the **Run apps - Runtime** column, find the row of the .NET Core runtime version desired.
249-
1. Download the installer using the **Runtime & Hosting Bundle** link.
260+
1. Download the installer using the **Hosting Bundle** link.
250261

251262
> [!WARNING]
252263
> Some installers contain release versions that have reached their end of life (EOL) and are no longer supported by Microsoft. For more information, see the [support policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).
@@ -840,20 +851,12 @@ Install the *.NET Core Hosting Bundle* on the hosting system. The bundle install
840851
>
841852
> If the Hosting Bundle is installed after installing the 64-bit (x64) version of .NET Core, SDKs might appear to be missing ([No .NET Core SDKs were detected](xref:test/troubleshoot#no-net-core-sdks-were-detected)). To resolve the problem, see <xref:test/troubleshoot#missing-sdk-after-installing-the-net-core-hosting-bundle>.
842853
843-
### Direct download (current version)
844-
845-
Download the installer using the following link:
846-
847-
[Current .NET Core Hosting Bundle installer (direct download)](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer)
848-
849-
### Earlier versions of the installer
850-
851-
To obtain an earlier version of the installer:
854+
### Download
852855

853856
1. Navigate to the [Download .NET Core](https://dotnet.microsoft.com/download/dotnet-core) page.
854-
1. Click on the desired .NET Core version.
857+
1. Select the desired .NET Core version.
855858
1. In the **Run apps - Runtime** column, find the row of the .NET Core runtime version desired.
856-
1. Download the installer using the **Runtime & Hosting Bundle** link.
859+
1. Download the installer using the **Hosting Bundle** link.
857860

858861
> [!WARNING]
859862
> Some installers contain release versions that have reached their end of life (EOL) and are no longer supported by Microsoft. For more information, see the [support policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).
@@ -1416,20 +1419,12 @@ Install the *.NET Core Hosting Bundle* on the hosting system. The bundle install
14161419
>
14171420
> If the Hosting Bundle is installed after installing the 64-bit (x64) version of .NET Core, SDKs might appear to be missing ([No .NET Core SDKs were detected](xref:test/troubleshoot#no-net-core-sdks-were-detected)). To resolve the problem, see <xref:test/troubleshoot#missing-sdk-after-installing-the-net-core-hosting-bundle>.
14181421
1419-
### Direct download (current version)
1420-
1421-
Download the installer using the following link:
1422-
1423-
[Current .NET Core Hosting Bundle installer (direct download)](https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer)
1424-
1425-
### Earlier versions of the installer
1426-
1427-
To obtain an earlier version of the installer:
1422+
### Download
14281423

14291424
1. Navigate to the [Download .NET Core](https://dotnet.microsoft.com/download/dotnet-core) page.
1430-
1. Click on the desired .NET Core version.
1425+
1. Select the desired .NET Core version.
14311426
1. In the **Run apps - Runtime** column, find the row of the .NET Core runtime version desired.
1432-
1. Download the installer using the **Runtime & Hosting Bundle** link.
1427+
1. Download the installer using the **Hosting Bundle** link.
14331428

14341429
> [!WARNING]
14351430
> Some installers contain release versions that have reached their end of life (EOL) and are no longer supported by Microsoft. For more information, see the [support policy](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).

aspnetcore/razor-pages/razor-pages-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ When you need to configure custom page routes for individual pages, configure ro
1818

1919
To specify a page route, add route segments, or add parameters to a route, use the page's `@page` directive. For more information, see [Custom routes](xref:razor-pages/index#custom-routes).
2020

21-
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).
21+
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).
2222

2323
[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/master/aspnetcore/razor-pages/razor-pages-conventions/samples/) ([how to download](xref:index#how-to-download-a-sample))
2424

aspnetcore/security/cors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: rick-anderson
44
description: Learn how CORS as a standard for allowing or rejecting cross-origin requests in an ASP.NET Core app.
55
ms.author: riande
66
ms.custom: mvc
7-
ms.date: 01/23/2020
7+
ms.date: 04/17/2020
88
uid: security/cors
99
---
1010
# Enable Cross-Origin Requests (CORS) in ASP.NET Core
@@ -65,7 +65,7 @@ CORS Middleware handles cross-origin requests. The following code applies a CORS
6565
The preceding code:
6666

6767
* Sets the policy name to `_myAllowSpecificOrigins`. The policy name is arbitrary.
68-
* Calls the <xref:Microsoft.AspNetCore.Builder.CorsMiddlewareExtensions.UseCors*> extension method and specifies the `_myAllowSpecificOrigins` CORS policy. `UseCors` adds the CORS middleware.
68+
* Calls the <xref:Microsoft.AspNetCore.Builder.CorsMiddlewareExtensions.UseCors*> extension method and specifies the `_myAllowSpecificOrigins` CORS policy. `UseCors` adds the CORS middleware. The call to `UseCors` must be placed after `UseRouting`, but before `UseAuthorization`. For more information, see [Middleware order](xref:fundamentals/middleware/index#middleware-order).
6969
* Calls <xref:Microsoft.Extensions.DependencyInjection.CorsServiceCollectionExtensions.AddCors*> with a [lambda expression](/dotnet/csharp/programming-guide/statements-expressions-operators/lambda-expressions). The lambda takes a <xref:Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder> object. [Configuration options](#cors-policy-options), such as `WithOrigins`, are described later in this article.
7070
* Enables the `_myAllowSpecificOrigins` CORS policy for all controller endpoints. See [endpoint routing](#ecors) to apply a CORS policy to specific endpoints.
7171

aspnetcore/web-api/advanced/formatting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: ardalis
44
description: Learn how to format response data in ASP.NET Core Web API.
55
ms.author: riande
66
ms.custom: H1Hack27Feb2017
7-
ms.date: 12/05/2019
7+
ms.date: 04/17/2020
88
uid: web-api/advanced/formatting
99
---
1010
# Format response data in ASP.NET Core Web API
@@ -124,10 +124,10 @@ Features for the `System.Text.Json`-based formatters can be configured using `Mi
124124
services.AddControllers().AddJsonOptions(options =>
125125
{
126126
// Use the default property (Pascal) casing.
127-
options.SerializerOptions.PropertyNamingPolicy = null;
127+
options.JsonSerializerOptions.PropertyNamingPolicy = null;
128128

129129
// Configure a custom converter.
130-
options.SerializerOptions.Converters.Add(new MyCustomJsonConverter());
130+
options.JsonSerializerOptions.Converters.Add(new MyCustomJsonConverter());
131131
});
132132
```
133133

@@ -166,7 +166,7 @@ services.AddControllers().AddNewtonsoftJson(options =>
166166
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
167167

168168
// Configure a custom converter
169-
options.SerializerOptions.Converters.Add(new MyCustomJsonConverter());
169+
options.SerializerSettings.Converters.Add(new MyCustomJsonConverter());
170170
});
171171
```
172172

0 commit comments

Comments
 (0)