.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的方法。

浙公网安备 33010602011771号