Skip to content

Commit

Permalink
Delocalize package name (#18371)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored May 18, 2020
1 parent d336346 commit 36fe260
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions aspnetcore/migration/22-to-30.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -466,7 +466,7 @@ The default JSON serializer for ASP.NET Core is now <xref:System.Text.Json>, 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`.

Expand Down Expand Up @@ -495,7 +495,7 @@ The default JSON serializer for ASP.NET Core is now <xref:System.Text.Json>, 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

Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/tutorials/first-mongo-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/web-api/jsonpatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <xref:Microsoft.Extensions.DependencyInjection.NewtonsoftJsonMvcBuilderExtensions.AddNewtonsoftJson*>. For example:

```csharp
Expand Down

0 comments on commit 36fe260

Please sign in to comment.