From 36fe260be6337b3956418b835358bd6e9407729d Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 18 May 2020 16:53:19 -0500 Subject: [PATCH] Delocalize package name (#18371) --- aspnetcore/migration/22-to-30.md | 6 +++--- aspnetcore/tutorials/first-mongo-app.md | 2 +- .../first-mongo-app/samples/3.x/SampleApp/readme.md | 2 +- aspnetcore/web-api/jsonpatch.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aspnetcore/migration/22-to-30.md b/aspnetcore/migration/22-to-30.md index fd3696aab83a..b897a1c19bf9 100644 --- a/aspnetcore/migration/22-to-30.md +++ b/aspnetcore/migration/22-to-30.md @@ -268,7 +268,7 @@ To continue using features provided by the removed assemblies, reference the 3.0 * Razor runtime compilation – Support for runtime compilation of Razor views and pages is now part of [Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation). -* MVC `Newtonsoft.Json` (Json.NET) support – Support for using MVC with `Newtonsoft.Json` is now part of [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). +* MVC `Newtonsoft.Json` (Json.NET) support – Support for using MVC with `Newtonsoft.Json` is now part of [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). ## Startup changes @@ -466,7 +466,7 @@ The default JSON serializer for ASP.NET Core is now , whi ### Use Newtonsoft.Json in an ASP.NET Core 3.0 MVC project -* Install the [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. +* Install the [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. * Update `Startup.ConfigureServices` to call `AddNewtonsoftJson`. @@ -495,7 +495,7 @@ The default JSON serializer for ASP.NET Core is now , whi new CamelCasePropertyNamesContractResolver()); ``` -**Note:** If the `AddNewtonsoftJson` method isn't available, make sure that you installed the [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. A common error is to install the [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) package instead of the [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. +**Note:** If the `AddNewtonsoftJson` method isn't available, make sure that you installed the [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. A common error is to install the [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) package instead of the [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson) package. ## MVC service registration diff --git a/aspnetcore/tutorials/first-mongo-app.md b/aspnetcore/tutorials/first-mongo-app.md index df6261534c8f..233cace6a235 100644 --- a/aspnetcore/tutorials/first-mongo-app.md +++ b/aspnetcore/tutorials/first-mongo-app.md @@ -341,7 +341,7 @@ There are two details to change about the JSON responses returned in the [Test t To satisfy the preceding requirements, make the following changes: -1. JSON.NET has been removed from ASP.NET shared framework. Add a package reference to [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). +1. JSON.NET has been removed from ASP.NET shared framework. Add a package reference to [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). 1. In `Startup.ConfigureServices`, chain the following highlighted code on to the `AddControllers` method call: diff --git a/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp/readme.md b/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp/readme.md index fff902561e79..79c1792bdb4e 100644 --- a/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp/readme.md +++ b/aspnetcore/tutorials/first-mongo-app/samples/3.x/SampleApp/readme.md @@ -463,7 +463,7 @@ There are two details to change about the JSON responses returned in the [Test t To satisfy the preceding requirements, make the following changes: -1. JSON.NET has been removed from ASP.NET shared framework. Add a package reference to [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). +1. JSON.NET has been removed from ASP.NET shared framework. Add a package reference to [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson). 1. In `Startup.ConfigureServices`, chain the following highlighted code on to the `AddMvc` method call: diff --git a/aspnetcore/web-api/jsonpatch.md b/aspnetcore/web-api/jsonpatch.md index 8f8c57453017..eb5693c560e8 100644 --- a/aspnetcore/web-api/jsonpatch.md +++ b/aspnetcore/web-api/jsonpatch.md @@ -21,7 +21,7 @@ This article explains how to handle JSON Patch requests in an ASP.NET Core web A To enable JSON Patch support in your app, complete the following steps: -1. Install the [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson/) NuGet package. +1. Install the [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson/) NuGet package. 1. Update the project's `Startup.ConfigureServices` method to call . For example: ```csharp