what should be the equivalent setting for
services.AddMvc(options => {
options.RespectBrowserAcceptHeader = true;
})
.AddXmlSerializerFormatters()
.AddXmlDataContractSerializerFormatters();
in asp.net core 3.0
Detail of the question can be seen at https://github.com/dotnet/corefx/issues/42085
It is found out to be
services.AddControllers(options => options.RespectBrowserAcceptHeader = true).AddXmlSerializerFormatters().AddXmlDataContractSerializerFormatters();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With