.Net Core 3.0 IMvcBuilder AddJsonOptions 报错问题及JSON配置方法

本文主要介绍.NET Core 2.0 升级 3.0,调用AddJsonOptions(options =>options.SerializerSettings.ContractResolver = new DefaultContractResolver());报措问题(Error CS1061 'IMvcBuilder' does not contain a definition for 'AddJsonOptions' and no accessible extension method 'AddJsonOptions' accepting a first argument of type 'IMvcBuilder' could be found (are you missing a using directive or an assembly reference?),以及在.NET Core 3.0配置JSON的方法。

原文地址:.Net Core 3.0 IMvcBuilder AddJsonOptions 报错问题及JSON配置方法

posted @ 2021-07-01 08:43  levizhong  阅读(374)  评论(0)    收藏  举报