Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit b5813ea

Browse files
Ensure newtonsoft json is configured and added
1 parent 71ffc19 commit b5813ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/AspNetCore.NewtonsoftJson/NewtonsoftJsonConvention.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public void Register(IServiceConventionContext context)
3939
throw new ArgumentNullException(nameof(context));
4040
}
4141

42+
services
43+
.AddMvcCore()
44+
.AddNewtonsoftJson();
4245
context.Services.Configure<MvcNewtonsoftJsonOptions>(
4346
options =>
4447
{

0 commit comments

Comments
 (0)