Skip to content
代码片段 群组 项目
提交 a5915eda 编辑于 作者: Steve Sanderson's avatar Steve Sanderson
浏览文件

In Blazor Hosted template, use Json.NET. Fixes #7122

上级 7bd5297c
No related branches found
No related tags found
无相关合并请求
......@@ -12,6 +12,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="$(TemplateBlazorPackageVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.Server" Version="$(TemplateComponentsPackageVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="$(TemplateComponentsPackageVersion)" />
</ItemGroup>
<ItemGroup>
......
......@@ -13,7 +13,7 @@ namespace BlazorHosted_CSharp.Server
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddMvc().AddNewtonsoftJson();
services.AddResponseCompression();
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册